diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2000-11-08 17:09:15 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-11-08 17:09:15 +0000 |
| commit | 0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c (patch) | |
| tree | 6f3d5f54435b19fea389cf5352c6be3f98abad4f /Src | |
| parent | *** empty log message *** (diff) | |
| download | zsh-0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c.tar zsh-0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c.tar.gz zsh-0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c.tar.bz2 zsh-0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c.tar.lz zsh-0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c.tar.xz zsh-0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c.tar.zst zsh-0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c.zip | |
Try blocking read() in read_poll() only if select() returns error (or
doesn't exist).
Diffstat (limited to 'Src')
| -rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index 686a46fbf..b7b8d1295 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -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). |
