summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdaemon/dfork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdaemon/dfork.c b/libdaemon/dfork.c
index 5edcc75..5ed438d 100644
--- a/libdaemon/dfork.c
+++ b/libdaemon/dfork.c
@@ -227,7 +227,7 @@ pid_t daemon_fork(void) {
} else {
/* Second father */
close(pipe_fds[1]);
- exit(0);
+ _exit(0);
}
fail:
@@ -235,7 +235,7 @@ pid_t daemon_fork(void) {
if (atomic_write(pipe_fds[1], &dpid, sizeof(dpid)) != sizeof(dpid))
daemon_log(LOG_ERR, "Failed to write error PID.");
close(pipe_fds[1]);
- exit(0);
+ _exit(0);
} else {
/* First father */