diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index d3b9aeab8..22c12cf1f 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -708,7 +708,7 @@ raw_getbyte(long do_keytmout, char *cptr, int full) */ if ( # ifdef HAVE_POLL - (fds[0].revents & POLLIN) + (fds[0].revents & (POLLIN|POLLERR|POLLHUP|POLLNVAL)) # else FD_ISSET(SHTTY, &foofd) # endif