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)
Wed, Oct 15, 7:12 AM
Unknown Object (File)
Tue, Oct 7, 8:09 PM
Unknown Object (File)
Sun, Oct 5, 12:26 PM
Unknown Object (File)
Sun, Oct 5, 5:34 AM
Unknown Object (File)
Sep 10 2025, 5:31 AM
Unknown Object (File)
Sep 5 2025, 1:28 AM
Unknown Object (File)
Sep 5 2025, 12:58 AM
Unknown Object (File)
Aug 19 2025, 9:10 AM
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