summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/tmux.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-09-28 08:30:45 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-09-28 08:30:45 +0000
commita65bec40aaa8485cbaa570ecebfbace7f1b46498 (patch)
tree3db4b0bce79cc955b7da66341d389a6eabae7858 /usr.bin/tmux/tmux.h
parent89812eb9ff93d2b5d79583d55e9a7e78905fd24a (diff)
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.
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r--usr.bin/tmux/tmux.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h
index 8c0afd61f55..4f98691881c 100644
--- a/usr.bin/tmux/tmux.h
+++ b/usr.bin/tmux/tmux.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmux.h,v 1.645 2016/09/16 13:43:41 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.646 2016/09/28 08:30:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -894,6 +894,8 @@ struct window_pane {
int fd;
struct bufferevent *event;
+ struct event resize_timer;
+
u_int wmark_size;
u_int wmark_hits;