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:
parent
468e3b59dc
commit
0ce5e0f303
2 changed files with 6 additions and 1 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue