From b226232d74099ddd92d3b61ee31051b71e678aa9 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Thu, 10 Apr 2014 09:45:22 +0200 Subject: [PATCH] Be carefull there is a race condition. You need myself to be allocated or going to Segfault --- meshlink-sample/meshlinkapp.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5