From 8cf68f05ab1b13f147521ad64df34dae256e09fb Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 2 Jun 2016 10:59:51 +0100 Subject: 21603: Make read_poll more interruptible. If we interrupted the first read we still did the fallback read. This is wrong. --- 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 12911d3f4..95be1fb98 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2534,7 +2534,7 @@ read_poll(int fd, int *readchar, int polltty, zlong microseconds) #endif #endif - if (fd >= 0 && ret < 0) { + if (fd >= 0 && ret < 0 && !errflag) { /* * Final attempt: set non-blocking read and try to read a character. * Praise Bill, this works under Cygwin (nothing else seems to). -- cgit 1.4.1