diff options
author | ed <ed@FreeBSD.org> | 2008-08-22 05:15:52 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2008-08-22 05:15:52 +0000 |
commit | deab1dbbf729b15625e76d0c3f643df47c236334 (patch) | |
tree | 4e9addb5bd52f4c156f629afd55c7059bf6233fe /sys/kern/tty.c | |
parent | a78a2c205c994d210c53d4d8d2096b331b81f8b5 (diff) | |
download | FreeBSD-src-deab1dbbf729b15625e76d0c3f643df47c236334.zip FreeBSD-src-deab1dbbf729b15625e76d0c3f643df47c236334.tar.gz |
Prevent VSTART flooding when turning on software flow control.
It turned out we transmitted VSTART after each successful read on a TTY
when software flow control was turned on. This was because of a very
evil bug where we tested the TF_HIWAT_IN flag the other way around.
Reported by: Christian Weisgerber <naddy mips inka de>
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index af12da3..aaa43fc 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1651,7 +1651,7 @@ void tty_hiwat_in_unblock(struct tty *tp) { - if ((tp->t_flags & TF_HIWAT_IN) == 0 && + if (tp->t_flags & TF_HIWAT_IN && tp->t_termios.c_iflag & IXOFF && tp->t_termios.c_cc[VSTART] != _POSIX_VDISABLE) { /* |