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)
Tue, Mar 31, 4:19 PM
Unknown Object (File)
Tue, Mar 31, 8:55 AM
Unknown Object (File)
Tue, Mar 31, 6:41 AM
Unknown Object (File)
Tue, Mar 10, 3:11 PM
Unknown Object (File)
Sun, Mar 8, 4:47 PM
Unknown Object (File)
Feb 28 2026, 10:08 PM
Unknown Object (File)
Feb 23 2026, 2:52 PM
Unknown Object (File)
Dec 3 2025, 4:29 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