Revert "Cygwin hangs up if several keys are typed during outputting a lot of texts."

This reverts commit 252a07b0ad.

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:
Corinna Vinschen 2016-06-01 17:04:24 +02:00
parent 8a31aa37bc
commit 211a942ad2
1 changed files with 1 additions and 1 deletions

View File

@ -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