asa: Error out if writing to stdout failed.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D40562
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user