From a59eed92bcf89637f89613d6ae388e7066c155cf Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Mon, 7 Apr 2014 19:19:37 +0200 Subject: [PATCH] Keep the sample application running like a server --- meshlink-sample/meshlinkapp.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.39.5