From 0ce5e0f3038bfb2cf7e584cd26bbb417dc0ec10c Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Wed, 8 Nov 2000 17:09:15 +0000 Subject: Try blocking read() in read_poll() only if select() returns error (or doesn't exist). --- Src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/utils.c') 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). -- cgit v1.2.3