aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-06-17 04:15:18 +0000
committerRichard M. Stallman1997-06-17 04:15:18 +0000
commit1c0707fd109e0cbe41107493bcf8396149da1830 (patch)
treee67124388f95dcfc83aafd8f1a03fe16ccd4e04a /src/process.c
parentb3e13f5d78fbb9c4986d52ad814853a8a34828db (diff)
downloademacs-1c0707fd109e0cbe41107493bcf8396149da1830.tar.gz
emacs-1c0707fd109e0cbe41107493bcf8396149da1830.zip
(wait_reading_process_input): Fix previous change.
Diffstat (limited to 'src/process.c')
-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)
2311 XSETPROCESS (proc, wait_proc); 2311 XSETPROCESS (proc, wait_proc);
2312 2312
2313 /* Read data from the process, until we exhaust it. */ 2313 /* Read data from the process, until we exhaust it. */
2314 while (nread = read_process_output (proc, XINT (wait_proc->infd))) 2314 while (XINT (wait_proc->infd) >= 0
2315 && nread = read_process_output (proc, XINT (wait_proc->infd)))
2315 total_nread += nread; 2316 total_nread += nread;
2316 if (total_nread > 0 && do_display) 2317 if (total_nread > 0 && do_display)
2317 redisplay_preserve_echo_area (); 2318 redisplay_preserve_echo_area ();