chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
execute: reset signal handlers when executing
[elogind.git]
/
execute.c
diff --git
a/execute.c
b/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;