summaryrefslogtreecommitdiffstats
path: root/cmd-pipe-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-05-03 16:06:32 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-05-03 16:06:32 +0000
commitec1d37b1b259e8a3502646876b60eb42c2c5c740 (patch)
tree9e4df0d9a264623b5c1be85e21fcdf07cbb440b9 /cmd-pipe-pane.c
parentc9191394332342a570dc6620bc8cfd7c6e554e1b (diff)
Make signal handler setup/teardown two common functions instead of six,
and reset SIGCHLD after fork to fix problems with some shells. From Romain Francois.
Diffstat (limited to 'cmd-pipe-pane.c')
-rw-r--r--cmd-pipe-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c
index efe79a38..0d7c3ff6 100644
--- a/cmd-pipe-pane.c
+++ b/cmd-pipe-pane.c
@@ -91,7 +91,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
case 0:
/* Child process. */
close(pipe_fd[0]);
- server_signal_clear();
+ clear_signals();
if (dup2(pipe_fd[1], STDIN_FILENO) == -1)
_exit(1);