From 7da999f4aee4e9c8b192769fddbe1c61cd31d7d0 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 18 Oct 2013 16:58:47 +0200 Subject: [PATCH] Clean up child processes from proxy type exec. --- src/net.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/net.c b/src/net.c index 286f1576..baf576d5 100644 --- a/src/net.c +++ b/src/net.c @@ -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 } /* -- 2.39.5