BSD 4_1_snap release
[unix-history] / usr / src / cmd / delivermail / err.c
index d386e43..c8ac7f4 100644 (file)
@@ -4,7 +4,7 @@
 # include <log.h>
 # endif LOG
 
 # include <log.h>
 # endif LOG
 
-static char    SccsId[] = "@(#)err.c   1.5     10/21/80";
+static char    SccsId[] = "@(#)err.c   2.2     1/10/81";
 
 /*
 **  SYSERR -- Print error message.
 
 /*
 **  SYSERR -- Print error message.
@@ -44,6 +44,7 @@ syserr(fmt, a, b, c, d, e)
                        sprintf(p, ": error %d", errno);
        }
        printf("delivermail: %s\n", errbuf);
                        sprintf(p, ": error %d", errno);
        }
        printf("delivermail: %s\n", errbuf);
+       fflush(stdout);
        Errors++;
 
        /* determine exit status if not already set */
        Errors++;
 
        /* determine exit status if not already set */
@@ -90,5 +91,6 @@ usrerr(fmt, a, b, c, d, e)
                printf("%s... ", To);
        printf(fmt, a, b, c, d, e);
        printf("\n");
                printf("%s... ", To);
        printf(fmt, a, b, c, d, e);
        printf("\n");
+       fflush(stdout);
        return (-1);
 }
        return (-1);
 }