]> git.eshelyaron.com Git - emacs.git/commitdiff
(wait_reading_process_input) [!subprocesses]:
authorRichard M. Stallman <rms@gnu.org>
Mon, 15 Apr 1996 19:12:01 +0000 (19:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 15 Apr 1996 19:12:01 +0000 (19:12 +0000)
Get rid of the loop around the detect_input_pending call.

src/process.c

index 6db62dc6f3509e561f0645ebaae848d0596bd6d3..e74e1ed7b5641ef261d8ce11e3e514bc72ccce43 100644 (file)
@@ -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;