diff options
Diffstat (limited to 'mbbsd/pmore.c')
-rw-r--r-- | mbbsd/pmore.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index e3ec9c05..b742109c 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -2199,6 +2199,9 @@ pmore_wait_input(struct timeval *ptv) #endif do { + if(num_in_buf() > 0) // for EINTR + return 1; + sel = select(1, &readfds, NULL, NULL, ptv); } while (sel < 0 && errno == EINTR); /* EINTR, interrupted. I don't care! */ |