HomeFreeBSD

comm: flush stdout for error checking prior to exiting

Description

comm: flush stdout for error checking prior to exiting

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.

Reviewed by: imp, allanjude
Sponsored by: Apple Inc.
Differential Revision: https://reviews.freebsd.org/D45439

Details

Provenance
ccecchi_apple.comAuthored on Jun 6 2024, 4:51 PM
allanjudeCommitted on Jun 6 2024, 5:04 PM
Reviewer
imp
Differential Revision
D45439: comm: flush stdout for error checking prior to exiting
Parents
rGb5b90ff9844d: u3g: Add support for SIM7600G
Branches
Unknown
Tags
Unknown