Mercurial > emacs
changeset 8853:f44e40e722b2
(Fcall_process) [__osf__ && __alpha]:
Don't stop reading if read returns negative.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 17 Sep 1994 05:30:39 +0000 |
parents | 90a35a24cde1 |
children | c21c9ae5f8e7 |
files | src/callproc.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/callproc.c Sat Sep 17 05:16:09 1994 +0000 +++ b/src/callproc.c Sat Sep 17 05:30:39 1994 +0000 @@ -427,8 +427,16 @@ register int nread; int first = 1; - while ((nread = read (fd[0], buf, sizeof buf)) > 0) + while ((nread = read (fd[0], buf, sizeof buf)) != 0) { + if (nread < 0) + { +#if defined (__osf__) && defined (__alpha) + continue; /* Work around bug in DEC OSF/1 V3.0. */ +#else + break; +#endif + } immediate_quit = 0; if (!NILP (buffer)) insert (buf, nread);