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

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