1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

main: expclitly ignore signal when executing crash shell

This commit is contained in:
Lennart Poettering 2010-04-13 18:52:56 +02:00
parent aaf694ca54
commit c99b188ea0

2
main.c
View File

@ -121,6 +121,8 @@ _noreturn static void crash(int sig) {
assert_se(sigaddset(&mask, sig) == 0);
assert_se(sigprocmask(SIG_SETMASK, &mask, NULL) == 0);
ignore_signal(sig);
execl("/bin/sh", "/bin/sh", NULL);
log_error("execl() failed: %s", strerror(errno));
}