projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2fb2ec
)
main: use EXIT_EXCEPTION instead of EXIT_FAILURE at two more exceptional places
author
Lennart Poettering
<lennart@poettering.net>
Tue, 20 Nov 2018 16:03:35 +0000
(17:03 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 20 Nov 2018 16:04:07 +0000
(17:04 +0100)
src/core/main.c
patch
|
blob
|
history
diff --git
a/src/core/main.c
b/src/core/main.c
index
70227da
..
5272df3
100644
(file)
--- 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);