added close to listen_fd
authorhackbard <hackbard>
Sat, 19 Oct 2002 01:06:00 +0000 (01:06 +0000)
committerhackbard <hackbard>
Sat, 19 Oct 2002 01:06:00 +0000 (01:06 +0000)
stream.c

index 834bf47..1a150e1 100644 (file)
--- a/stream.c
+++ b/stream.c
@@ -74,6 +74,7 @@ int main(int argc, char *argv[]) {
       }
 
       close(send_fd);
+      close(listen_fd);
       printf("connection closed ...\n");
       printf("%d from %d total bytes sent.\n",send_bytes,read_bytes);
   }