X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.c;h=d80df2fd84c3d6d728a79bac55301e60a43e6d1d;hb=f342cb44b25cd61eed17897575015be4aae1dd17;hp=85cbf3d442fd1e60e466ca70351bbddeb1d2a126;hpb=af87825c8c8479c576af390adae502b2e5bf6e5f;p=meshlink diff --git a/src/net.c b/src/net.c index 85cbf3d4..d80df2fd 100644 --- a/src/net.c +++ b/src/net.c @@ -92,13 +92,6 @@ void terminate_connection(meshlink_handle_t *mesh, connection_t *c, bool report) if(outgoing) { do_outgoing_connection(mesh, outgoing); } - -#ifndef HAVE_MINGW - /* Clean up dead proxy processes */ - - while(waitpid(-1, NULL, WNOHANG) > 0); - -#endif } /* @@ -610,7 +603,7 @@ static void periodic_handler(event_loop_t *loop, void *data) { for splay_each(node_t, n, mesh->nodes) { if(n->status.dirty) { - if(node_write_config(mesh, n)) { + if(!node_write_config(mesh, n)) { logger(mesh, MESHLINK_DEBUG, "Could not update %s", n->name); }