Sync OpenBSD patchset 486:

Don't backoff based on suspended or deda clients as they are always likely to
have data backed up.
This commit is contained in:
Tiago Cunha 2009-11-04 22:47:29 +00:00
parent 5be38f2b3a
commit 9e208584ed

View File

@ -1,4 +1,4 @@
/* $Id: server-window.c,v 1.3 2009-11-02 21:32:51 tcunha Exp $ */
/* $Id: server-window.c,v 1.4 2009-11-04 22:47:29 tcunha 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)