From 1c0707fd109e0cbe41107493bcf8396149da1830 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 17 Jun 1997 04:15:18 +0000 Subject: [PATCH] (wait_reading_process_input): Fix previous change. --- src/process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 (); -- 2.39.5