main: minor improvement of daemonizing
authorJosé Bollo <jose.bollo@iot.bzh>
Mon, 25 Jan 2016 10:01:49 +0000 (11:01 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Mon, 25 Jan 2016 10:36:15 +0000 (11:36 +0100)
Change-Id: Iba9cb6ae3e18524a99cb82e521b4ca1aeec8d972
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/main.c

index e14dc3a..b17435e 100644 (file)
@@ -574,7 +574,7 @@ int main(int argc, char *argv[])  {
       if (status == -1) goto errorPidFile;
 
       // we are in father process, we don't need this one
-      exit (0);
+      _exit (0);
 
   } // end background-foreground