aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/process.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/process.c b/src/process.c
index 6db62dc6f35..e74e1ed7b56 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3953,19 +3953,14 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
3953 set_waiting_for_input (&timeout); 3953 set_waiting_for_input (&timeout);
3954 } 3954 }
3955 3955
3956 { 3956 if (XINT (read_kbd) && detect_input_pending ())
3957 int old_timers_run = timers_run; 3957 {
3958 if (XINT (read_kbd) && detect_input_pending ()) 3958 nfds = 0;
3959 { 3959 FD_ZERO (&waitchannels);
3960 nfds = 0; 3960 }
3961 FD_ZERO (&waitchannels); 3961 else
3962 } 3962 nfds = select (1, &waitchannels, (SELECT_TYPE *)0, (SELECT_TYPE *)0,
3963 else if (timers_run != old_timers_run) 3963 &timeout);
3964 ;
3965 else
3966 nfds = select (1, &waitchannels, (SELECT_TYPE *)0, (SELECT_TYPE *)0,
3967 &timeout);
3968 }
3969 3964
3970 xerrno = errno; 3965 xerrno = errno;
3971 3966