X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=baf576d5d854c77f9a2af1b0411bf0aa834dca18;hp=286f15763e2f6cbd4e7bf632f91c550106d718f7;hb=7da999f4aee4e9c8b192769fddbe1c61cd31d7d0;hpb=9b2eaebdf6eb46321403bfc6af1145d051d3bbdc 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 } /*