From: Richard M. Stallman Date: Tue, 17 Jun 1997 04:15:18 +0000 (+0000) Subject: (wait_reading_process_input): Fix previous change. X-Git-Tag: emacs-20.1~1670 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1c0707fd109e0cbe41107493bcf8396149da1830;p=emacs.git (wait_reading_process_input): Fix previous change. --- diff --git a/src/process.c b/src/process.c index bebfba77843..06edf7c5e84 100644 --- a/src/process.c +++ b/src/process.c @@ -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 ();