]> git.meshlink.io Git - meshlink/commitdiff
Be carefull there is a race condition. You need myself to be allocated or going to...
authorSaverio Proto <zioproto@gmail.com>
Thu, 10 Apr 2014 07:45:22 +0000 (09:45 +0200)
committerSaverio Proto <zioproto@gmail.com>
Thu, 10 Apr 2014 07:45:22 +0000 (09:45 +0200)
meshlink-sample/meshlinkapp.c

index 515a2d52d86a05d1516ad3676d13a56d9830c7de..0ec564e37b6f149b17c457e0706a9bc637420ba9 100644 (file)
@@ -14,6 +14,7 @@ remotenode->publickey = NULL;
 
 tinc_setup(confbase, name);
 tinc_start(confbase);
+sleep(2); //there is a race condition here, tinc_start detaches to a thread the needs time to setup stuff
 while(1) {
 
 //sample data to send out