From: Lennart Poettering Date: Tue, 20 Nov 2018 16:03:35 +0000 (+0100) Subject: main: use EXIT_EXCEPTION instead of EXIT_FAILURE at two more exceptional places X-Git-Tag: v240~261^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb85a58208a8b83178e826e5dab1f2c31aaa6b7e;p=thirdparty%2Fsystemd.git main: use EXIT_EXCEPTION instead of EXIT_FAILURE at two more exceptional places --- diff --git a/src/core/main.c b/src/core/main.c index 70227da4b77..5272df3e3f1 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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);