summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
authornicm <nicm>2017-07-14 08:04:23 +0000
committernicm <nicm>2017-07-14 08:04:23 +0000
commit2678fe53f57c4a3222780c76a7201f4300058e59 (patch)
tree90325aa887a3b503bcbb78822fdc2d109324fec1 /proc.c
parent8b84fc177cf2af7fcb68262a016e6c3e19cd8ba5 (diff)
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.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c14
1 files changed, 7 insertions, 7 deletions
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 *