1
0
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:
Diomidis Spinellis 2003-10-04 07:16:40 +00:00
parent 708b44ba6f
commit 4566e7a433
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120729

View File

@ -175,6 +175,8 @@ main(int argc, char *argv[])
vary_destroy(v);
(void)strftime(buf, sizeof(buf), format, &lt);
(void)printf("%s\n", buf);
if (fflush(stdout))
err(1, "stdout");
exit(retval);
}