summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-22 01:46:08 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-22 01:46:08 +0200
commit9a34ec5fbb4b55413dc9d610b636fe760d34ecd7 (patch)
tree75ca3c00d0954ad3c78dbb1c616d6fafd2b93ff0 /src/execute.c
parente1ce2c2782015579f042d4d6963ed039333fb8c2 (diff)
execute: only reset those signals to the default we really need to reset to the default
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/execute.c b/src/execute.c
index 06eb15215d..ead6c0fa42 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -783,7 +783,11 @@ int exec_spawn(ExecCommand *command,
/* child */
- reset_all_signal_handlers();
+ /* We reset exactly these two signals, since they are
+ * the only ones we set to SIG_IGN in the main
+ * daemon. All others */
+ default_signals(SIGNALS_CRASH_HANLDER,
+ SIGNALS_IGNORE, -1);
if (sigemptyset(&ss) < 0 ||
sigprocmask(SIG_SETMASK, &ss, NULL) < 0) {