summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-09-15 13:40:17 +0200
committerGitHub <noreply@github.com>2017-09-15 13:40:17 +0200
commitfc8c15fcd75bf271cddf8e1d6c0db77c225dc5e5 (patch)
tree56f8e619220b7ed20f9ca0f0efc1dbd4e1ab2e2f /src
parentca1172b4d0871ed23eadfe36243dd4bedde939f7 (diff)
parent624ef4a696fc736779c6b7af94c7e376b7033590 (diff)
downloadirssi-fc8c15fcd75bf271cddf8e1d6c0db77c225dc5e5.zip
Merge pull request #755 from trasz/capsicum
Get rid of the zombies in Capsicum capability mode.
Diffstat (limited to 'src')
-rw-r--r--src/core/capsicum.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/capsicum.c b/src/core/capsicum.c
index 79db780a..3b0708cb 100644
--- a/src/core/capsicum.c
+++ b/src/core/capsicum.c
@@ -403,6 +403,13 @@ static void cmd_capsicum_enter(void)
return;
}
+ /*
+ * XXX: We should use pdwait(2) to wait for children. Unfortunately
+ * it's not implemented yet. Thus the workaround, to get rid
+ * of the zombies at least.
+ */
+ signal(SIGCHLD, SIG_IGN);
+
error = cap_enter();
if (error != 0) {
signal_emit("capability mode failed", 1, strerror(errno));