execute: reset signal handlers when executing

This commit is contained in:
Lennart Poettering 2010-04-13 04:49:50 +02:00
parent c3b3c274cf
commit 7b68387983
1 changed files with 2 additions and 0 deletions

View File

@ -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;