# HG changeset patch # User Richard M. Stallman # Date 866520918 0 # Node ID 3835d79f89789d3c90ba64b2bd9b500cbc14d591 # Parent e3b0443b4bbbe0b0f39ca2955ef248a4611d0544 (wait_reading_process_input): Fix previous change. diff -r e3b0443b4bbb -r 3835d79f8978 src/process.c --- 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 ();