Sync OpenBSD patchset 495:

Switch tty fds over to a bufferevent.
This commit is contained in:
Tiago Cunha
2009-11-08 22:58:38 +00:00
parent 7851bb81f5
commit 971a7b2fe0
5 changed files with 43 additions and 50 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server-window.c,v 1.6 2009-11-08 22:53:13 tcunha Exp $ */
/* $Id: server-window.c,v 1.7 2009-11-08 22:58:37 tcunha Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -87,7 +87,8 @@ server_window_backoff(struct window_pane *wp)
continue;
if (c->session->curw->window != wp->window)
continue;
if (BUFFER_USED(c->tty.out) > BACKOFF_THRESHOLD)
if (EVBUFFER_LENGTH(c->tty.event->output) > BACKOFF_THRESHOLD)
return (1);
}
return (0);