mirror of
https://github.com/troglobit/finit.git
synced 2026-10-05 07:13:44 +07:00
Prefer _exit() over exit() in forked service handlers
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -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] = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user