aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman1996-04-15 19:12:01 +0000
committerRichard M. Stallman1996-04-15 19:12:01 +0000
commit1861b214270c9c0d2639c19db9fcc967c55ac438 (patch)
tree5f74dd5b3d9159530a7e5d20c0f26ff6b215a08d /src/process.c
parentd04127d3a88de749df5b7ae3a48908ca5fce9e99 (diff)
downloademacs-1861b214270c9c0d2639c19db9fcc967c55ac438.tar.gz
emacs-1861b214270c9c0d2639c19db9fcc967c55ac438.zip
(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)
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