flush in printf() so that we don't lose the output
authorChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Fri, 15 May 1992 15:10:03 +0000 (07:10 -0800)
committerChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Fri, 15 May 1992 15:10:03 +0000 (07:10 -0800)
SCCS-vsn: bin/csh/func.c 5.35

usr/src/bin/csh/func.c

index f3a4541..da2a691 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)func.c     5.34 (Berkeley) %G%";
+static char sccsid[] = "@(#)func.c     5.35 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -1463,6 +1463,8 @@ doprintf(v, t)
     int ret;
 
     ret = progprintf(blklen(v), c = short2blk(v));
     int ret;
 
     ret = progprintf(blklen(v), c = short2blk(v));
+    (void) fflush(cshout);
+    (void) fflush(csherr);
 
     blkfree((Char **) c);
     if (ret)
 
     blkfree((Char **) c);
     if (ret)