diff src/callproc.c @ 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 72b312ebaa10
children 6c814eb4d892
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);