From c99b188ea0f6c4b0c63aa56c439df9bab16b7924 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 13 Apr 2010 18:52:56 +0200 Subject: [PATCH] main: expclitly ignore signal when executing crash shell --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index b8ad5901..622ba631 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)); } -- 2.39.5