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:
parent
8a31aa37bc
commit
211a942ad2
|
@ -767,7 +767,7 @@ fhandler_pty_slave::read (void *ptr, size_t& len)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
readlen = bytes_in_pipe ? MIN (len, sizeof (buf)) : 0;
|
readlen = MIN (bytes_in_pipe, MIN (len, sizeof (buf)));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* Why on earth is the read length reduced to vmin, even if more bytes
|
/* Why on earth is the read length reduced to vmin, even if more bytes
|
||||||
|
|
Loading…
Reference in New Issue