Page MenuHomeFreeBSD

comm: flush stdout for error checking prior to exiting
ClosedPublic

Authored by ccecchi_apple.com on Jun 1 2024, 3:56 PM.
Tags
None
Referenced Files
F103126990: D45439.diff
Thu, Nov 21, 8:54 AM
Unknown Object (File)
Tue, Nov 19, 5:52 PM
Unknown Object (File)
Thu, Nov 7, 8:28 PM
Unknown Object (File)
Tue, Nov 5, 11:31 AM
Unknown Object (File)
Oct 18 2024, 4:15 PM
Unknown Object (File)
Oct 16 2024, 9:04 AM
Unknown Object (File)
Oct 15 2024, 7:26 AM
Unknown Object (File)
Oct 14 2024, 5:51 PM
Subscribers

Details

Summary

UNIX conformance wants utilities to catch any errors when doing I/O, as
opposed to relying on the implicit flush upon exit.
comm currently does not do that.
This commit adds handling of I/O errors on stdout prior to exit.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable