Rate limit TIOCSWINSZ on a timer to avoid programs getting hammered with

SIGWINCH when the size changes rapidly. To help a problem reported by
Rui Pinheiro.
This commit is contained in:
nicm
2016-09-28 08:30:44 +00:00
parent 69e980602b
commit acacb718e5
3 changed files with 41 additions and 4 deletions

2
tmux.h
View File

@ -894,6 +894,8 @@ struct window_pane {
int fd;
struct bufferevent *event;
struct event resize_timer;
u_int wmark_size;
u_int wmark_hits;