chiark / gitweb /
execute: only reset those signals to the default we really need to reset to the default
[elogind.git] / src / execute.c
index 06eb15215df5f486c18e82e0e22c6303c9175ea7..ead6c0fa423fd2c322bbedd37686a0ca4c2d7b28 100644 (file)
@@ -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) {