summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2017-07-14 18:49:07 +0000
committernicm <nicm>2017-07-14 18:49:07 +0000
commit932f6cfbfc98ab2d6e593f7fa3473a6bb3269967 (patch)
tree458fd646c28b3655f2ca1ca6a228188cc49ca2e0 /window.c
parent2678fe53f57c4a3222780c76a7201f4300058e59 (diff)
Because ignore SIGCHLD early, letting signal_del restore it doesn't work
correctly, so set it explicitly back to default (and the others for good measure).
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index 08d2c6e5..f08e35ab 100644
--- a/window.c
+++ b/window.c
@@ -929,7 +929,7 @@ window_pane_spawn(struct window_pane *wp, int argc, char **argv,
sigprocmask(SIG_SETMASK, &oldset, NULL);
return (-1);
case 0:
- proc_clear_signals(server_proc);
+ proc_clear_signals(server_proc, 1);
sigprocmask(SIG_SETMASK, &oldset, NULL);
if (chdir(wp->cwd) != 0) {