summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-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));