# HG changeset patch # User Richard M. Stallman # Date 829595521 0 # Node ID e5f54fd1c35225332d168ecf9975cb87ff953399 # Parent 46fab7ac485ba8aeb17007540eea84b6506a68a2 (wait_reading_process_input) [!subprocesses]: Get rid of the loop around the detect_input_pending call. diff -r 46fab7ac485b -r e5f54fd1c352 src/process.c --- a/src/process.c Mon Apr 15 18:51:37 1996 +0000 +++ b/src/process.c Mon Apr 15 19:12:01 1996 +0000 @@ -3953,19 +3953,14 @@ set_waiting_for_input (&timeout); } - { - int old_timers_run = timers_run; - if (XINT (read_kbd) && detect_input_pending ()) - { - nfds = 0; - FD_ZERO (&waitchannels); - } - else if (timers_run != old_timers_run) - ; - else - nfds = select (1, &waitchannels, (SELECT_TYPE *)0, (SELECT_TYPE *)0, - &timeout); - } + if (XINT (read_kbd) && detect_input_pending ()) + { + nfds = 0; + FD_ZERO (&waitchannels); + } + else + nfds = select (1, &waitchannels, (SELECT_TYPE *)0, (SELECT_TYPE *)0, + &timeout); xerrno = errno;