ctags: Error out if writing to stdout failed.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	cracauer, allanjude
Differential Revision:	https://reviews.freebsd.org/D40200
This commit is contained in:
Dag-Erling Smørgrav 2023-05-23 17:31:28 +02:00
parent 7900879eec
commit 5063211781

View File

@ -218,6 +218,8 @@ main(int argc, char **argv)
}
}
}
if (ferror(stdout) != 0 || fflush(stdout) != 0)
err(1, "stdout");
exit(exit_val);
}