summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-13 18:52:56 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-13 18:52:56 +0200
commitc99b188ea0f6c4b0c63aa56c439df9bab16b7924 (patch)
tree438519ea82fdce80b633920e5b2c8bb2a8783f0e
parentaaf694ca54365997a1ba103832db12605da9023f (diff)
main: expclitly ignore signal when executing crash shell
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index b8ad590189..622ba63151 100644
--- a/main.c
+++ b/main.c
@@ -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));
}