summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-06-17 04:15:18 +0000
committerRichard M. Stallman <rms@gnu.org>1997-06-17 04:15:18 +0000
commit01bb3a9f3ac04a0612cb2d4f953bd83d29c13c1d (patch)
treeeb00cb31a8fe3d2d270afcd661011b5988bb2f29 /src
parent5b11fe3143e57d22efd9c09833ec54eb2aea6ca5 (diff)
downloademacs-01bb3a9f3ac04a0612cb2d4f953bd83d29c13c1d.tar.gz
(wait_reading_process_input): Fix previous change.
Diffstat (limited to 'src')
-rw-r--r--src/process.c3
1 files changed, 2 insertions, 1 deletions
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 ();