Mercurial > emacs
diff src/process.c @ 18276:3835d79f8978
(wait_reading_process_input): Fix previous change.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 17 Jun 1997 04:15:18 +0000 |
| parents | 29c37882ee1f |
| children | 3a85989b7e2c |
line wrap: on
line diff
--- a/src/process.c Tue Jun 17 02:29:54 1997 +0000 +++ b/src/process.c Tue Jun 17 04:15:18 1997 +0000 @@ -2311,7 +2311,8 @@ 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 ();
