diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-09-17 05:30:39 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-09-17 05:30:39 +0000 |
commit | 9aeec3a9929313735fa3fb06f6a5e9624a609ca2 (patch) | |
tree | c25b04bba8db93b37f65871becc29b49c8c42360 /src/callproc.c | |
parent | 8c6079268ab48b181abe661804caaa579a9087a9 (diff) | |
download | emacs-9aeec3a9929313735fa3fb06f6a5e9624a609ca2.tar.gz |
(Fcall_process) [__osf__ && __alpha]:
Don't stop reading if read returns negative.
Diffstat (limited to 'src/callproc.c')
-rw-r--r-- | src/callproc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index 1da4b4d5781..0881ed98884 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -427,8 +427,16 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") 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); |