chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3b3c27
)
execute: reset signal handlers when executing
author
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Apr 2010 02:49:50 +0000
(
04:49
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Apr 2010 02:49:50 +0000
(
04:49
+0200)
execute.c
patch
|
blob
|
history
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;