]> err.no Git - systemd/commitdiff
main: expclitly ignore signal when executing crash shell
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 16:52:56 +0000 (18:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 16:52:56 +0000 (18:52 +0200)
main.c

diff --git a/main.c b/main.c
index b8ad590189546a83dcd3be8ab9feee22ad5a1fc8..622ba631519b90811d92e8aae79d9c15acf5514f 100644 (file)
--- 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));
         }