X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=b2e055c63834b5d28dfaa90c0c5aad329254934e;hp=a13e2661046f58d2ca64df3a423e1e0a1e492f17;hb=b47c17bcdeb70b63ad9346dc97ba575597cbd803;hpb=802a50ffcd5f39bfc6424ac841de4e41154092fc diff --git a/src/tincd.c b/src/tincd.c index a13e2661..b2e055c6 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -115,6 +115,7 @@ static struct option const long_options[] = { #ifdef HAVE_MINGW static struct WSAData wsa_state; +CRITICAL_SECTION mutex; #endif static void usage(bool status) @@ -568,6 +569,8 @@ int main(int argc, char **argv) int main2(int argc, char **argv) { + InitializeCriticalSection(&mutex); + EnterCriticalSection(&mutex); #endif if(!detach())