main: use EXIT_EXCEPTION instead of EXIT_FAILURE at two more exceptional places
This commit is contained in:
parent
f2fb2ec942
commit
bb85a58208
|
@ -185,7 +185,7 @@ _noreturn_ static void crash(int sig) {
|
|||
(void) kill(pid, sig); /* raise() would kill the parent */
|
||||
|
||||
assert_not_reached("We shouldn't be here...");
|
||||
_exit(EXIT_FAILURE);
|
||||
_exit(EXIT_EXCEPTION);
|
||||
} else {
|
||||
siginfo_t status;
|
||||
int r;
|
||||
|
@ -231,7 +231,7 @@ _noreturn_ static void crash(int sig) {
|
|||
(void) execle("/bin/sh", "/bin/sh", NULL, environ);
|
||||
|
||||
log_emergency_errno(errno, "execle() failed: %m");
|
||||
_exit(EXIT_FAILURE);
|
||||
_exit(EXIT_EXCEPTION);
|
||||
} else {
|
||||
log_info("Spawned crash shell as PID "PID_FMT".", pid);
|
||||
(void) wait_for_terminate(pid, NULL);
|
||||
|
|
Loading…
Reference in a new issue