changeset 15025:e5f54fd1c352

(wait_reading_process_input) [!subprocesses]: Get rid of the loop around the detect_input_pending call.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Apr 1996 19:12:01 +0000
parents 46fab7ac485b
children 8c1f6839aff9
files src/process.c
diffstat 1 files changed, 8 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- 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;