mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
Check for write errors; report and exit with error value.
This commit is contained in:
parent
708b44ba6f
commit
4566e7a433
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120729
@ -175,6 +175,8 @@ main(int argc, char *argv[])
|
||||
vary_destroy(v);
|
||||
(void)strftime(buf, sizeof(buf), format, <);
|
||||
(void)printf("%s\n", buf);
|
||||
if (fflush(stdout))
|
||||
err(1, "stdout");
|
||||
exit(retval);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user