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 | 1c0707fd109e0cbe41107493bcf8396149da1830 (patch) | |
tree | e67124388f95dcfc83aafd8f1a03fe16ccd4e04a /src | |
parent | b3e13f5d78fbb9c4986d52ad814853a8a34828db (diff) | |
download | emacs-1c0707fd109e0cbe41107493bcf8396149da1830.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 (); |