changeset 2610:100ac7394e71

(wait_reading_process_input): Move the status_notify call before the set_waiting_for_input call.
author Richard M. Stallman <rms@gnu.org>
date Thu, 29 Apr 1993 15:57:17 +0000
parents af46e8faaa32
children 8bfb4d8d4238
files src/process.c
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Thu Apr 29 14:23:22 1993 +0000
+++ b/src/process.c	Thu Apr 29 15:57:17 1993 +0000
@@ -1747,15 +1747,6 @@
 	  EMACS_SET_SECS_USECS (timeout, 100000, 0);
 	}
 
-      /* Cause C-g and alarm signals to take immediate action,
-	 and cause input available signals to zero out timeout.
-
-	 It is important that we do this before checking for process
-	 activity.  If we get a SIGCHLD after the explicit checks for
-	 process activity, timeout is the only way we will know.  */
-      if (XINT (read_kbd) < 0)
-	set_waiting_for_input (&timeout);
-
       /* If status of something has changed, and no input is
 	 available, notify the user of the change right away.  After
 	 this explicit check, we'll let the SIGCHLD handler zap
@@ -1768,6 +1759,15 @@
 	    status_notify ();
 	}
 
+      /* Cause C-g and alarm signals to take immediate action,
+	 and cause input available signals to zero out timeout.
+
+	 It is important that we do this before checking for process
+	 activity.  If we get a SIGCHLD after the explicit checks for
+	 process activity, timeout is the only way we will know.  */
+      if (XINT (read_kbd) < 0)
+	set_waiting_for_input (&timeout);
+
       /* Don't wait for output from a non-running process.  */
       if (wait_proc != 0 && !NILP (wait_proc->raw_status_low))
 	update_status (wait_proc);