From: Lennart Poettering Date: Tue, 13 Apr 2010 02:49:50 +0000 (+0200) Subject: execute: reset signal handlers when executing X-Git-Tag: 0.git+20100605+dfd8ee-1~133 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b683879838523032604a2a5a95142956f7b8a88;p=systemd execute: reset signal handlers when executing --- diff --git a/execute.c b/execute.c index 065296ba..4e01e9ad 100644 --- a/execute.c +++ b/execute.c @@ -681,6 +681,8 @@ int exec_spawn(ExecCommand *command, /* child */ + reset_all_signal_handlers(); + if (sigemptyset(&ss) < 0 || sigprocmask(SIG_SETMASK, &ss, NULL) < 0) { r = EXIT_SIGNAL_MASK;