summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2002-02-18 06:07:11 +0000
committerdillon <dillon@FreeBSD.org>2002-02-18 06:07:11 +0000
commit15dc81ca3d20b599b737bfabcec943a08ee40ccf (patch)
tree484d587b52b2a5f28f60188805f8ac885c233ae4
parent8ad412b83c618666fa12e1d70585cccd3041286b (diff)
downloadFreeBSD-src-15dc81ca3d20b599b737bfabcec943a08ee40ccf.zip
FreeBSD-src-15dc81ca3d20b599b737bfabcec943a08ee40ccf.tar.gz
The ICANON flag is an lflag, not an iflag.
Submitted by: Neelkanth Natu <neelnatu@yahoo.com> MFC after: 3 days
-rw-r--r--sys/kern/tty_pty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 7e00ec4..6f1c0db 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -504,7 +504,7 @@ ptcpoll(dev, events, td)
((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 && (tp->t_iflag & ICANON)))))
+ (tp->t_canq.c_cc == 0 && (tp->t_lflag & ICANON)))))
revents |= events & (POLLOUT | POLLWRNORM);
if (events & POLLHUP)
@@ -596,7 +596,7 @@ again:
}
while (cc > 0) {
if ((tp->t_rawq.c_cc + tp->t_canq.c_cc) >= TTYHOG - 2 &&
- (tp->t_canq.c_cc > 0 || !(tp->t_iflag&ICANON))) {
+ (tp->t_canq.c_cc > 0 || !(tp->t_lflag&ICANON))) {
wakeup(TSA_HUP_OR_INPUT(tp));
goto block;
}
OpenPOWER on IntegriCloud