aboutsummaryrefslogtreecommitdiff
path: root/cmd-pipe-pane.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2010-05-14 14:30:01 +0000
committerTiago Cunha <tcunha@gmx.com>2010-05-14 14:30:01 +0000
commitfc69b9ccb79fc5d1a345918d1ceccf990eb723ef (patch)
treead7b59d4d79c4e4b6500c4141ccd43245c62daae /cmd-pipe-pane.c
parentd3dd6709bc4e2006e8aaf1e90bcca84212a30e13 (diff)
downloadrtmux-fc69b9ccb79fc5d1a345918d1ceccf990eb723ef.tar.gz
rtmux-fc69b9ccb79fc5d1a345918d1ceccf990eb723ef.tar.bz2
rtmux-fc69b9ccb79fc5d1a345918d1ceccf990eb723ef.zip
Sync OpenBSD patchset 696:
Make signal handler setup/teardown two common functions instead of six, and reset SIGCHLD after fork to fix problems with some shells. From Romain Francoise.
Diffstat (limited to 'cmd-pipe-pane.c')
-rw-r--r--cmd-pipe-pane.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c
index 19611893..28c8e637 100644
--- a/cmd-pipe-pane.c
+++ b/cmd-pipe-pane.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-pipe-pane.c,v 1.10 2009-12-04 22:14:47 tcunha Exp $ */
+/* $Id: cmd-pipe-pane.c,v 1.11 2010-05-14 14:30:01 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -90,7 +90,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);