]> err.no Git - systemd/commitdiff
execute: reset signal handlers when executing
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 02:49:50 +0000 (04:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Apr 2010 02:49:50 +0000 (04:49 +0200)
execute.c

index 065296bafd53bde1fb750e92b8ab50aad2372dc0..4e01e9ad69be1c08dbe6cd2c14edde70cf743c62 100644 (file)
--- 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;