diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-06-17 04:15:18 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-06-17 04:15:18 +0000 |
commit | 01bb3a9f3ac04a0612cb2d4f953bd83d29c13c1d (patch) | |
tree | eb00cb31a8fe3d2d270afcd661011b5988bb2f29 /src | |
parent | 5b11fe3143e57d22efd9c09833ec54eb2aea6ca5 (diff) | |
download | emacs-01bb3a9f3ac04a0612cb2d4f953bd83d29c13c1d.tar.gz |
(wait_reading_process_input): Fix previous change.
Diffstat (limited to 'src')
-rw-r--r-- | src/process.c | 3 |
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 (); |