X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet.c;h=9669bc971972488e80ba69391b3841da952f13dc;hb=373b0c12d9d0e8a3b449fd18be704e28dd6403e1;hp=7f8442169de9b3d78fc75f29d373bbaaba74e630;hpb=cfc9fee931c70554353ce6c4acc3407baac08745;p=tinc diff --git a/src/net.c b/src/net.c index 7f844216..9669bc97 100644 --- a/src/net.c +++ b/src/net.c @@ -160,7 +160,7 @@ void terminate_connection(connection_t *c, bool report) { do_outgoing_connection(outgoing); } -#ifndef HAVE_MINGW +#ifndef HAVE_WINDOWS /* Clean up dead proxy processes */ while(waitpid(-1, NULL, WNOHANG) > 0); @@ -308,7 +308,7 @@ void handle_meta_connection_data(connection_t *c) { } } -#ifndef HAVE_MINGW +#ifndef HAVE_WINDOWS static void sigterm_handler(void *data) { logger(DEBUG_ALWAYS, LOG_NOTICE, "Got %s signal", strsignal(((signal_t *)data)->signum)); event_exit(); @@ -487,7 +487,7 @@ int main_loop(void) { 0, 0 }); -#ifndef HAVE_MINGW +#ifndef HAVE_WINDOWS signal_t sighup = {0}; signal_t sigterm = {0}; signal_t sigquit = {0}; @@ -506,7 +506,7 @@ int main_loop(void) { return 1; } -#ifndef HAVE_MINGW +#ifndef HAVE_WINDOWS signal_del(&sighup); signal_del(&sigterm); signal_del(&sigquit);