summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-04-15 19:12:01 +0000
committerRichard M. Stallman <rms@gnu.org>1996-04-15 19:12:01 +0000
commit55f4a6236463edf0f42febf50cecb443989666bf (patch)
tree2296c79567d54d35ff976516d9cdca21e8913acf /src/process.c
parentfcdaca9cdf1e39f5dd5f27dc36275b6c18d4d277 (diff)
downloademacs-55f4a6236463edf0f42febf50cecb443989666bf.tar.gz
(wait_reading_process_input) [!subprocesses]:
Get rid of the loop around the detect_input_pending call.
Diffstat (limited to 'src/process.c')
-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)
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;