X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fivac.git;a=blobdiff_plain;f=stream.c;h=1a150e1a8f8575a6e74676cbc4a4dbfa8db08a33;hp=834bf4784dfce47f30c9ae858388729b8f862513;hb=f820c424539e0d20c7befdfc04412d9acd29614a;hpb=fa6a332e18a1ed735e380d1d2081f5778009d6ab 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); }