aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-04 23:22:14 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-04 23:22:14 +0100
commitd85b70b6293b004fc315e2fa6d9c78c0961be89f (patch)
tree51190badc2c15be2bb79dad18ffc3c45cdc546f2
parent4826639aeccb186fba99f60ea58911f80c02317e (diff)
downloadpaludis-d85b70b6293b004fc315e2fa6d9c78c0961be89f.tar.gz
paludis-d85b70b6293b004fc315e2fa6d9c78c0961be89f.tar.xz
It helps if we remember to sacrifice the goat
-rw-r--r--paludis/util/system.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/util/system.cc b/paludis/util/system.cc
index 2f50588..a720799 100644
--- a/paludis/util/system.cc
+++ b/paludis/util/system.cc
@@ -1039,6 +1039,10 @@ paludis::become_command(const Command & cmd)
/* Ignore CLD. POSIX may or may not say that if we do this, our child will
* not become a zombie. */
+ struct sigaction act;
+ act.sa_handler = SIG_IGN;
+ act.sa_flags = 0;
+ sigaction(SIGTERM, &act, 0);
pid_t child_child(fork());
if (0 == child_child)