From: hackbard Date: Sat, 19 Oct 2002 01:06:00 +0000 (+0000) Subject: added close to listen_fd X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=commitdiff_plain;h=f820c424539e0d20c7befdfc04412d9acd29614a added close to listen_fd --- diff --git a/stream.c b/stream.c index 834bf47..1a150e1 100644 --- 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); }