aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-01-25 11:01:49 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-01-25 11:36:15 +0100
commitce4624801ed46ecf912205cd984f3488e3e07bac (patch)
tree9cecc438c8c735b50c58008cb09a454dcfdc795e
parent9b0f0c14da41424fc0ab50cc9a71499dcb307bd0 (diff)
main: minor improvement of daemonizing
Change-Id: Iba9cb6ae3e18524a99cb82e521b4ca1aeec8d972 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e14dc3a1..b17435ec 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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