summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-20 17:03:35 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-20 17:04:07 +0100
commitbb85a58208a8b83178e826e5dab1f2c31aaa6b7e (patch)
tree1800350f09aaa807e70cd338861cd0530e2dc239 /src
parentnspawn: use EXIT_EXCEPTION where appropriate (diff)
downloadsystemd-bb85a58208a8b83178e826e5dab1f2c31aaa6b7e.tar.xz
systemd-bb85a58208a8b83178e826e5dab1f2c31aaa6b7e.zip
main: use EXIT_EXCEPTION instead of EXIT_FAILURE at two more exceptional places
Diffstat (limited to 'src')
-rw-r--r--src/core/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/main.c b/src/core/main.c
index 70227da4b7..5272df3e3f 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);