diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 36fb55b848a4..06807ae36b93 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -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 -__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)