summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2017-09-12 14:19:17 +0100
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2017-09-12 14:19:17 +0100
commit624ef4a696fc736779c6b7af94c7e376b7033590 (patch)
treead22dee3e649c34b50e0be64ea82e55e695c1dff /src
parentb529e1a9df134bbc5618752abcf19af0110b6868 (diff)
downloadirssi-624ef4a696fc736779c6b7af94c7e376b7033590.zip
Get rid of the zombies in Capsicum capability mode.
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
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));