From e3be9b1951856f84d30c2903eccdf792618f71ba Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 19 Aug 2010 18:29:01 +0000 Subject: 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. --- cmd-pipe-pane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-pipe-pane.c') diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c index edc624dd..be6f8e25 100644 --- a/cmd-pipe-pane.c +++ b/cmd-pipe-pane.c @@ -97,7 +97,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); -- cgit v1.2.3