From 5e564f2bff1949789a662fc77b1ca1cbdcfbd265 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 11 Jun 2007 12:21:12 +0000 Subject: [PATCH] added setsid() to properly detach from console --- src/starter/starter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/starter/starter.c b/src/starter/starter.c index 0bf1d7a..f84d413 100644 --- a/src/starter/starter.c +++ b/src/starter/starter.c @@ -276,6 +276,7 @@ int main (int argc, char **argv) dup2(fnull, STDERR_FILENO); close(fnull); } + setsid(); } break; case -1: -- 2.7.4