From 2678fe53f57c4a3222780c76a7201f4300058e59 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 14 Jul 2017 08:04:23 +0000 Subject: Fix redraw defer code in the presence of multiple clients - the timer may be needed for all of them, so don't delete it on the first; and don't skip setting the redraw flag if the timer is already running. Reported by Pol Van Aubel in GitHub issue 1003. --- proc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'proc.c') diff --git a/proc.c b/proc.c index b0dd2728..68738229 100644 --- a/proc.c +++ b/proc.c @@ -255,13 +255,13 @@ proc_clear_signals(struct tmuxproc *tp) sigaction(SIGPIPE, &sa, NULL); sigaction(SIGTSTP, &sa, NULL); - event_del(&tp->ev_sighup); - event_del(&tp->ev_sigchld); - event_del(&tp->ev_sigcont); - event_del(&tp->ev_sigterm); - event_del(&tp->ev_sigusr1); - event_del(&tp->ev_sigusr2); - event_del(&tp->ev_sigwinch); + signal_del(&tp->ev_sighup); + signal_del(&tp->ev_sigchld); + signal_del(&tp->ev_sigcont); + signal_del(&tp->ev_sigterm); + signal_del(&tp->ev_sigusr1); + signal_del(&tp->ev_sigusr2); + signal_del(&tp->ev_sigwinch); } struct tmuxpeer * -- cgit