reap children properly

This commit is contained in:
yrutschle 2021-11-07 13:13:05 +01:00
parent 17313100b5
commit e28fa91b0f

View File

@ -112,6 +112,7 @@ void tcp_echo(struct listen_endpoint* listen_socket)
exit(0);
}
close(in_socket);
waitpid(-1, NULL, WNOHANG);
}
}