diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-09-15 13:40:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-15 13:40:17 +0200 |
commit | fc8c15fcd75bf271cddf8e1d6c0db77c225dc5e5 (patch) | |
tree | 56f8e619220b7ed20f9ca0f0efc1dbd4e1ab2e2f /src/core | |
parent | ca1172b4d0871ed23eadfe36243dd4bedde939f7 (diff) | |
parent | 624ef4a696fc736779c6b7af94c7e376b7033590 (diff) | |
download | irssi-fc8c15fcd75bf271cddf8e1d6c0db77c225dc5e5.zip |
Merge pull request #755 from trasz/capsicum
Get rid of the zombies in Capsicum capability mode.
Diffstat (limited to 'src/core')
-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)); |