1
0
Fork 0
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:
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

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

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).