Skip to content

Commit

Permalink
Clean up child processes from proxy type exec.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsliepen committed Oct 18, 2013
1 parent 086e4ca commit b0cc043
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/net.c
Expand Up @@ -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
}

/*
Expand Down

0 comments on commit b0cc043

Please sign in to comment.