From 7b683879838523032604a2a5a95142956f7b8a88 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 13 Apr 2010 04:49:50 +0200 Subject: [PATCH] execute: reset signal handlers when executing --- execute.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/execute.c b/execute.c index 065296ba..4e01e9ad 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; -- 2.39.5