]> git.meshlink.io Git - meshlink/blobdiff - src/net.c
Remove files not used by MeshLink.
[meshlink] / src / net.c
index 286f15763e2f6cbd4e7bf632f91c550106d718f7..6d7682d37dae6ef632729d5749a855763d930dd8 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -25,7 +25,6 @@
 #include "utils.h"
 #include "conf.h"
 #include "connection.h"
-#include "device.h"
 #include "graph.h"
 #include "logger.h"
 #include "meta.h"
@@ -129,6 +128,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
 }
 
 /*