about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/utils.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4299bcf33..c4840b056 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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).