]> git.meshlink.io Git - meshlink/blobdiff - meshlink-sample/meshlinkapp.c
Moving pid to /tmp/ so we can run the program without root privileges
[meshlink] / meshlink-sample / meshlinkapp.c
index df78331c5bd54930d45f60191c56527fed8e02c2..3be653526d269634e0962130a4492888753f1047 100644 (file)
@@ -2,11 +2,12 @@
 
 int main(int argc , char **argv){
 
-char *tinc_conf = "/tmp/";
+char *confbase = "/tmp/meshlink/";
 char *name = "test";
 
-tinc_setup(tinc_conf, name);
-
+tinc_setup(confbase, name);
+tinc_start(confbase);
+sleep(10); //give time to this thread to finish before we exit
 return 0;
 }