HomeFreeBSD

cmp: Check the status of stdout.

Description

cmp: Check the status of stdout.

POSIX requires us to print an error message and exit non-zero if
writing to stdout fails. This can only happen if sflag is unset.

MFC after: 3 days
Sponsored by: Klara, Inc.
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D47020

Details

Provenance
desAuthored on Wed, Oct 9, 12:08 PM
Reviewer
markj
Differential Revision
D47020: cmp: Check the status of stdout.
Parents
rGd350e8d795d5: cmp: Style and type issues.
Branches
Unknown
Tags
Unknown