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>
This commit is contained in:
parent
2be30c0d91
commit
7dc843ca92
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=181993
@ -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) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user