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;