Clean up child processes from proxy type exec.

This commit is contained in:
Guus Sliepen 2013-10-18 16:58:47 +02:00
parent 9b2eaebdf6
commit 7da999f4ae

View file

@ -129,6 +129,12 @@ void terminate_connection(connection_t *c, bool report) {
if(outgoing)
do_outgoing_connection(outgoing);
#ifndef HAVE_MINGW
/* Clean up dead proxy processes */
while(waitpid(-1, NULL, WNOHANG) > 0);
#endif
}
/*