]> tinc-vpn.org Git - tinc/blobdiff - src/tincd.c
Introducing the Big Tinc Lock.
[tinc] / src / tincd.c
index aab250ae707ba9589031273e8a0d2f735ae706da..951867643ea37fdcbcd79de305d4a5f493c944f4 100644 (file)
@@ -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);