Prefer _exit() over exit() in forked service handlers

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-01-19 16:35:15 +01:00
parent 268304927d
commit 0ecf46d7a9
+1 -1
View File
@@ -329,7 +329,7 @@ static int service_start(svc_t *svc)
#endif
if (svc->log.enabled && !svc->log.null)
waitpid(pid, NULL, 0);
exit(status);
_exit(status);
} else if (log_is_debug()) {
char buf[CMD_SIZE] = "";