diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/utils.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 98dd0c617..9f1220d49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-06-02 Peter Stephenson <p.stephenson@samsung.com> + + * users/21603: Src/utils.c: Don't do second attempt at read/poll + from terminal if interrupted. + 2016-05-22 Peter Stephenson <p.w.stephenson@ntlworld.com> * 38515: Matthew Martin: Completion/Zsh/Context/_subscript: 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). |