mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
Revert "Cygwin hangs up if several keys are typed during outputting a lot of texts."
This reverts commit 252a07b0ad3353abcd0fcd9b1b65ff977acd679e. This change introduced a hang in certain scenarios, for an example see https://cygwin.com/ml/cygwin/2016-05/msg00318.html
This commit is contained in:
parent
8a31aa37bc
commit
211a942ad2
@ -767,7 +767,7 @@ fhandler_pty_slave::read (void *ptr, size_t& len)
|
||||
return;
|
||||
}
|
||||
|
||||
readlen = bytes_in_pipe ? MIN (len, sizeof (buf)) : 0;
|
||||
readlen = MIN (bytes_in_pipe, MIN (len, sizeof (buf)));
|
||||
|
||||
#if 0
|
||||
/* Why on earth is the read length reduced to vmin, even if more bytes
|
||||
|
Loading…
x
Reference in New Issue
Block a user