X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=951867643ea37fdcbcd79de305d4a5f493c944f4;hp=aab250ae707ba9589031273e8a0d2f735ae706da;hb=6834b882015a9323672e9fce8811aa4283f196f0;hpb=95d8811c2cef8bcde78e1f172f6c57c25cd487aa diff --git a/src/tincd.c b/src/tincd.c index aab250ae..95186764 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -110,6 +110,8 @@ static struct option const long_options[] = { {NULL, 0, NULL, 0} }; +mutex_t mutex; + #ifdef HAVE_MINGW static struct WSAData wsa_state; CRITICAL_SECTION mutex; @@ -383,6 +385,8 @@ int main(int argc, char **argv) { g_argv = argv; + mutex_create(&mutex); + mutex_lock(&mutex); init_events(); init_configuration(&config_tree);