From 9a34ec5fbb4b55413dc9d610b636fe760d34ecd7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 22 May 2010 01:46:08 +0200 Subject: execute: only reset those signals to the default we really need to reset to the default --- src/execute.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/execute.c') 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) { -- cgit v1.2.3-54-g00ecf