chiark / gitweb /
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 b8ad590..622ba63 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));
         }