projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
086e4ca
)
Clean up child processes from proxy type exec.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 18 Oct 2013 15:05:35 +0000
(17:05 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 18 Oct 2013 15:05:35 +0000
(17:05 +0200)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index
b2fe0de
..
c5e5707
100644
(file)
--- 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
}
/*