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).
This commit is contained in:
nicm
2017-07-14 18:49:07 +00:00
parent 2678fe53f5
commit 932f6cfbfc
7 changed files with 18 additions and 8 deletions

View File

@ -115,7 +115,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmdq_item *item)
return (CMD_RETURN_ERROR);
case 0:
/* Child process. */
proc_clear_signals(server_proc);
proc_clear_signals(server_proc, 1);
sigprocmask(SIG_SETMASK, &oldset, NULL);
close(pipe_fd[0]);