From: Saverio Proto Date: Thu, 10 Apr 2014 07:45:22 +0000 (+0200) Subject: Be carefull there is a race condition. You need myself to be allocated or going to... X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=b226232d74099ddd92d3b61ee31051b71e678aa9 Be carefull there is a race condition. You need myself to be allocated or going to Segfault --- diff --git a/meshlink-sample/meshlinkapp.c b/meshlink-sample/meshlinkapp.c index 515a2d52..0ec564e3 100644 --- a/meshlink-sample/meshlinkapp.c +++ b/meshlink-sample/meshlinkapp.c @@ -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