ICANON is in lflags, by Neelkanth Natu

This commit is contained in:
christos 2002-02-17 19:34:42 +00:00
parent f12a3476e0
commit 8ec87caa7f
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tty_pty.c,v 1.58 2002/02/02 07:18:55 tls Exp $ */
/* $NetBSD: tty_pty.c,v 1.59 2002/02/17 19:34:42 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.58 2002/02/02 07:18:55 tls Exp $");
__KERNEL_RCSID(0, "$NetBSD: tty_pty.c,v 1.59 2002/02/17 19:34:42 christos Exp $");
#include "opt_compat_sunos.h"
@ -635,7 +635,7 @@ again:
}
while (cc > 0) {
if ((tp->t_rawq.c_cc + tp->t_canq.c_cc) >= TTYHOG - 2 &&
(tp->t_canq.c_cc > 0 || !ISSET(tp->t_iflag, ICANON))) {
(tp->t_canq.c_cc > 0 || !ISSET(tp->t_lflag, ICANON))) {
wakeup((caddr_t)&tp->t_rawq);
goto block;
}
@ -693,7 +693,7 @@ ptcpoll(dev, events, p)
((pti->pt_flags & PF_REMOTE) ?
(tp->t_canq.c_cc == 0) :
((tp->t_rawq.c_cc + tp->t_canq.c_cc < TTYHOG-2) ||
(tp->t_canq.c_cc == 0 && ISSET(tp->t_iflag, ICANON)))))
(tp->t_canq.c_cc == 0 && ISSET(tp->t_lflag, ICANON)))))
revents |= events & (POLLOUT | POLLWRNORM);
if (events & POLLHUP)