mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-29 05:40:02 +00:00
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:
parent
5be38f2b3a
commit
9e208584ed
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue