]> git.eshelyaron.com Git - emacs.git/commitdiff
(wait_reading_process_input): Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Tue, 17 Jun 1997 04:15:18 +0000 (04:15 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 17 Jun 1997 04:15:18 +0000 (04:15 +0000)
src/process.c

index bebfba778433f77d7da2a24d5bfb52cc4c3c14d4..06edf7c5e842299409d9513d38de053a80ede803 100644 (file)
@@ -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 ();