changeset 18276:3835d79f8978

(wait_reading_process_input): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Tue, 17 Jun 1997 04:15:18 +0000
parents e3b0443b4bbb
children 7509948b0121
files src/process.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Tue Jun 17 02:29:54 1997 +0000
+++ b/src/process.c	Tue Jun 17 04:15:18 1997 +0000
@@ -2311,7 +2311,8 @@
 	  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 ();