]> git.meshlink.io Git - meshlink/commitdiff
Keep the sample application running like a server
authorSaverio Proto <zioproto@gmail.com>
Mon, 7 Apr 2014 17:19:37 +0000 (19:19 +0200)
committerSaverio Proto <zioproto@gmail.com>
Mon, 7 Apr 2014 17:19:37 +0000 (19:19 +0200)
meshlink-sample/meshlinkapp.c

index 3be653526d269634e0962130a4492888753f1047..d5f489e99505f9cecfc3e4b350b416f592625363 100644 (file)
@@ -7,7 +7,9 @@ char *name = "test";
 
 tinc_setup(confbase, name);
 tinc_start(confbase);
+while(1) {
 sleep(10); //give time to this thread to finish before we exit
+}
 return 0;
 }