summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-13 04:49:50 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-13 04:49:50 +0200
commit7b683879838523032604a2a5a95142956f7b8a88 (patch)
tree00c36ea2eb7921476a5ec34ea11edaa232a90e49
parentc3b3c274cf7911121f84746cd80a152455f7ec97 (diff)
execute: reset signal handlers when executing
-rw-r--r--execute.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/execute.c b/execute.c
index 065296bafd..4e01e9ad69 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;