summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-08-11 07:34:43 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-08-11 07:34:43 +0000
commit8363e31953a346b3cd4141bf30a8d79d37ca2674 (patch)
tree1052ae596f467e6f915c555530ce6b64df31e621 /tty.c
parent933dc48de356e387c0c027e654e1ae5f2f24c711 (diff)
Change the way backoff works. Instead of stopping reading from the pty
when the client tty backs up too much, just stop updating the tty and only update the internal screen. Then when the tty recovers, force a redraw. This prevents a dodgy client from causing other clients to go into backoff while still allowing tmux to be responsive (locally) when seeing lots of output.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index fa2cd552..bf0a48b0 100644
--- a/tty.c
+++ b/tty.c
@@ -578,7 +578,9 @@ tty_write(void (*cmdfn)(
continue;
if (c->session->curw->window == wp->window) {
- if (c->tty.flags & TTY_FREEZE || c->tty.term == NULL)
+ if (c->tty.term == NULL)
+ continue;
+ if (c->tty.flags & (TTY_FREEZE|TTY_BACKOFF))
continue;
cmdfn(&c->tty, ctx);
}