]> hackdaworld.org Git - my-code/ivac.git/commitdiff
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 834bf4784dfce47f30c9ae858388729b8f862513..1a150e1a8f8575a6e74676cbc4a4dbfa8db08a33 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);
   }