]> git.meshlink.io Git - meshlink/blobdiff - meshlink-sample/meshlinkapp.c
tinc_start() - skeleton of the API call. The function starts the main tinc thread...
[meshlink] / meshlink-sample / meshlinkapp.c
index 847fad01b2c2343cf4f43b9b81de339fcb432ebc..3be653526d269634e0962130a4492888753f1047 100644 (file)
@@ -6,7 +6,8 @@ char *confbase = "/tmp/meshlink/";
 char *name = "test";
 
 tinc_setup(confbase, name);
-
+tinc_start(confbase);
+sleep(10); //give time to this thread to finish before we exit
 return 0;
 }