diff options
author | Tiago Cunha <tcunha@gmx.com> | 2010-08-29 14:42:11 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2010-08-29 14:42:11 +0000 |
commit | 56040be3468e655256362c7d5b230b15236b9dd2 (patch) | |
tree | ac7667f2e41cc6d09c01dc58d084e715e3f3dd77 /cmd-pipe-pane.c | |
parent | e6bb3d69422d948373b10074b043a8ef0189b1de (diff) | |
download | rtmux-56040be3468e655256362c7d5b230b15236b9dd2.tar.gz rtmux-56040be3468e655256362c7d5b230b15236b9dd2.tar.bz2 rtmux-56040be3468e655256362c7d5b230b15236b9dd2.zip |
Sync OpenBSD patchset 751:
Do not call event_del() for signals after fork(), just use sigaction()
directly instead - calling libevent functions after fork() w/o
event_reinit() is a bad idea, even if in this case it was harmless.
Diffstat (limited to 'cmd-pipe-pane.c')
-rw-r--r-- | cmd-pipe-pane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c index 2e25b2de..85ff2d69 100644 --- a/cmd-pipe-pane.c +++ b/cmd-pipe-pane.c @@ -1,4 +1,4 @@ -/* $Id: cmd-pipe-pane.c,v 1.13 2010-06-15 20:25:40 tcunha Exp $ */ +/* $Id: cmd-pipe-pane.c,v 1.14 2010-08-29 14:42:11 tcunha Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -96,7 +96,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx) case 0: /* Child process. */ close(pipe_fd[0]); - clear_signals(); + clear_signals(1); if (dup2(pipe_fd[1], STDIN_FILENO) == -1) _exit(1); |