mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(Fcall_process) [__osf__ && __alpha]:
Don't stop reading if read returns negative.
This commit is contained in:
parent
c2ae679cbc
commit
00fb3e95ef
1 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue