diff --git a/echosrv.c b/echosrv.c index 4f08e31..3e69d4c 100644 --- a/echosrv.c +++ b/echosrv.c @@ -112,6 +112,7 @@ void tcp_echo(struct listen_endpoint* listen_socket) exit(0); } close(in_socket); + waitpid(-1, NULL, WNOHANG); } }