1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

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

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;