diff options
author | Richard M. Stallman <[email protected]> | 1993-04-29 15:57:17 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 1993-04-29 15:57:17 +0000 |
commit | 68a752206ebf11d3f6f8d7522d65d766ba73417d (patch) | |
tree | e793ea2efe55a175c08b751d176c9de4e08c8b51 /src | |
parent | 24fdffaaa02bc39ef94045bf98ced92968f8a1df (diff) |
(wait_reading_process_input): Move the status_notify
call before the set_waiting_for_input call.
Diffstat (limited to 'src')
-rw-r--r-- | src/process.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/process.c b/src/process.c index d52f52bcdf..2c3ad252a6 100644 --- a/src/process.c +++ b/src/process.c @@ -1747,15 +1747,6 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) 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 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) 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); |