From 624ef4a696fc736779c6b7af94c7e376b7033590 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Tue, 12 Sep 2017 14:19:17 +0100 Subject: Get rid of the zombies in Capsicum capability mode. Signed-off-by: Edward Tomasz Napierala --- src/core/capsicum.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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)); -- cgit v1.2.3