mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-23 17:01:05 +02: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
|
@ -1,3 +1,8 @@
|
|||
2000-11-08 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 13140: Src/utils.c: Believe the non-error not-ready return value
|
||||
from select(), in read_poll().
|
||||
|
||||
2000-11-08 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* ?????: Src/Modules/zpty.c: use possible read character from
|
||||
|
|
|
@ -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…
Reference in a new issue