1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Merge pull request #755 from trasz/capsicum

Get rid of the zombies in Capsicum capability mode.
This commit is contained in:
ailin-nemui 2017-09-15 13:40:17 +02:00 committed by GitHub
commit fc8c15fcd7

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