Commit 7ce63188 authored by Richard M. Stallman's avatar Richard M. Stallman

(wait_reading_process_input): When exiting because

the process WAIT_PROC has terminated, first read all its output.
parent 78943c8a
......@@ -2305,7 +2305,17 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
if (wait_proc != 0
&& ! EQ (wait_proc->status, Qrun))
int nread, total_nread;
clear_waiting_for_input ();
XSETPROCESS (proc, wait_proc);
/* Read data from the process, until we exhaust it. */
while (nread = read_process_output (proc, XINT (wait_proc->infd)))
total_nread += nread;
if (total_nread > 0 && do_display)
redisplay_preserve_echo_area ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment