1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Get rid of the zombies in Capsicum capability mode.

Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
This commit is contained in:
Edward Tomasz Napierala 2017-09-12 14:19:17 +01:00
parent b529e1a9df
commit 624ef4a696

View File

@ -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));