diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2017-09-12 14:19:17 +0100 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2017-09-12 14:19:17 +0100 |
commit | 624ef4a696fc736779c6b7af94c7e376b7033590 (patch) | |
tree | ad22dee3e649c34b50e0be64ea82e55e695c1dff /src | |
parent | b529e1a9df134bbc5618752abcf19af0110b6868 (diff) | |
download | irssi-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.c | 7 |
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)); |