diff options
| author | Richard M. Stallman | 1994-09-17 05:30:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-17 05:30:39 +0000 |
| commit | 00fb3e95ef7621b8900b5d52d5b8a92aa8db1907 (patch) | |
| tree | af2d8efafb635c06e41bc6995ed2a12d106e31c8 /src/callproc.c | |
| parent | c2ae679cbc26141b890dc218f1d4da7ad703a3a2 (diff) | |
| download | emacs-00fb3e95ef7621b8900b5d52d5b8a92aa8db1907.tar.gz emacs-00fb3e95ef7621b8900b5d52d5b8a92aa8db1907.zip | |
(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.") | |||
| 427 | register int nread; | 427 | register int nread; |
| 428 | int first = 1; | 428 | int first = 1; |
| 429 | 429 | ||
| 430 | while ((nread = read (fd[0], buf, sizeof buf)) > 0) | 430 | while ((nread = read (fd[0], buf, sizeof buf)) != 0) |
| 431 | { | 431 | { |
| 432 | if (nread < 0) | ||
| 433 | { | ||
| 434 | #if defined (__osf__) && defined (__alpha) | ||
| 435 | continue; /* Work around bug in DEC OSF/1 V3.0. */ | ||
| 436 | #else | ||
| 437 | break; | ||
| 438 | #endif | ||
| 439 | } | ||
| 432 | immediate_quit = 0; | 440 | immediate_quit = 0; |
| 433 | if (!NILP (buffer)) | 441 | if (!NILP (buffer)) |
| 434 | insert (buf, nread); | 442 | insert (buf, nread); |