diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-13 18:52:56 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-13 18:52:56 +0200 |
commit | c99b188ea0f6c4b0c63aa56c439df9bab16b7924 (patch) | |
tree | 438519ea82fdce80b633920e5b2c8bb2a8783f0e | |
parent | aaf694ca54365997a1ba103832db12605da9023f (diff) |
main: expclitly ignore signal when executing crash shell
-rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); } |