Commit 1c0707fd authored by Richard M. Stallman's avatar Richard M. Stallman

(wait_reading_process_input): Fix previous change.

parent b3e13f5d
......@@ -2311,7 +2311,8 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
XSETPROCESS (proc, wait_proc);
/* Read data from the process, until we exhaust it. */
while (nread = read_process_output (proc, XINT (wait_proc->infd)))
while (XINT (wait_proc->infd) >= 0
&& 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