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
Unknown Object (File)
Sat, Mar 1, 2:19 PM
Unknown Object (File)
Sat, Mar 1, 7:39 AM
Unknown Object (File)
Feb 19 2025, 10:57 PM
Unknown Object (File)
Feb 16 2025, 1:29 AM
Unknown Object (File)
Jan 31 2025, 9:22 PM
Unknown Object (File)
Jan 26 2025, 6:17 PM
Unknown Object (File)
Jan 26 2025, 5:56 PM
Unknown Object (File)
Jan 23 2025, 5:03 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