From: Saverio Proto Date: Mon, 7 Apr 2014 17:19:37 +0000 (+0200) Subject: Keep the sample application running like a server X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=a59eed92bcf89637f89613d6ae388e7066c155cf;p=meshlink Keep the sample application running like a server --- diff --git a/meshlink-sample/meshlinkapp.c b/meshlink-sample/meshlinkapp.c index 3be65352..d5f489e9 100644 --- a/meshlink-sample/meshlinkapp.c +++ b/meshlink-sample/meshlinkapp.c @@ -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; }