From: Guus Sliepen Date: Fri, 18 Oct 2013 15:05:35 +0000 (+0200) Subject: Clean up child processes from proxy type exec. X-Git-Tag: release-1.0.23~1 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=b0cc043315220046973d28b144665b2c820e3bd6 Clean up child processes from proxy type exec. --- diff --git a/src/net.c b/src/net.c index b2fe0dec..c5e5707b 100644 --- a/src/net.c +++ b/src/net.c @@ -212,6 +212,12 @@ void terminate_connection(connection_t *c, bool report) { c->status.remove = false; do_outgoing_connection(c); } + +#ifndef HAVE_MINGW + /* Clean up dead proxy processes */ + + while(waitpid(-1, NULL, WNOHANG) > 0); +#endif } /*