diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-04 08:35:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-11-04 08:35:12 +0000 |
commit | 8f05f74155ac584d7b2bfadbd35625184a2f91dd (patch) | |
tree | 4f4f3e3ccd1346dfdf60ddffa98ac6d405aca7ea | |
parent | 99ccfb27843bf021103958271651f4cdc8cea9be (diff) |
Don't backoff based on suspended or deda clients as they are always likely to
have data backed up.
-rw-r--r-- | usr.bin/tmux/server-window.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-window.c b/usr.bin/tmux/server-window.c index 29d6641c9fc..11f388ebded 100644 --- a/usr.bin/tmux/server-window.c +++ b/usr.bin/tmux/server-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-window.c,v 1.3 2009/10/28 22:53:14 nicm Exp $ */ +/* $OpenBSD: server-window.c,v 1.4 2009/11/04 08:35:11 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -78,6 +78,8 @@ server_window_backoff(struct window_pane *wp) c = ARRAY_ITEM(&clients, i); if (c == NULL || c->session == NULL) continue; + if ((c->flags & (CLIENT_SUSPENDED|CLIENT_DEAD)) != 0) + continue; if (c->session->curw->window != wp->window) continue; if (BUFFER_USED(c->tty.out) > BACKOFF_THRESHOLD) |