1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00

Try blocking read() in read_poll() only if select() returns error (or

doesn't exist).
This commit is contained in:
Bart Schaefer 2000-11-08 17:09:15 +00:00
parent 468e3b59dc
commit 0ce5e0f303
2 changed files with 6 additions and 1 deletions

View file

@ -1373,7 +1373,7 @@ read_poll(int fd, int *readchar, int polltty)
#endif
#endif
if (ret <= 0) {
if (ret < 0) {
/*
* Final attempt: set non-blocking read and try to read a character.
* Praise Bill, this works under Cygwin (nothing else seems to).