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)
Dec 3 2025, 4:29 PM
Unknown Object (File)
Dec 1 2025, 9:56 AM
Unknown Object (File)
Nov 22 2025, 9:14 PM
Unknown Object (File)
Nov 5 2025, 7:07 AM
Unknown Object (File)
Nov 4 2025, 8:05 PM
Unknown Object (File)
Nov 4 2025, 6:23 AM
Unknown Object (File)
Nov 3 2025, 9:37 PM
Unknown Object (File)
Oct 29 2025, 2:53 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57989
Build 54877: arc lint + arc unit