diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2023-06-15 19:23:19 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2023-06-15 19:24:58 +0000 |
commit | 9e379f9639d51442ad1d5e1800c687ef2c954901 (patch) | |
tree | d2660248fc92c643afad36b75aa1dc5b5ad94678 | |
parent | 19aebfbf80b375ecaa807b36b06d55b34b953f3e (diff) | |
download | src-9e379f9639d51442ad1d5e1800c687ef2c954901.tar.gz src-9e379f9639d51442ad1d5e1800c687ef2c954901.zip |
-rw-r--r-- | usr.bin/asa/asa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/asa/asa.c b/usr.bin/asa/asa.c index 22174ed340cd..11438b607466 100644 --- a/usr.bin/asa/asa.c +++ b/usr.bin/asa/asa.c @@ -81,6 +81,9 @@ main(int argc, char *argv[]) } } + if (fflush(stdout) != 0) + err(1, "stdout"); + exit(exval); } @@ -140,4 +143,7 @@ asa(FILE *f) putchar('\n'); } + + if (ferror(stdout) != 0) + err(1, "stdout"); } |