MFC after: 1 week
Sponsored by: Klara, Inc.
Details
Details
- Reviewers
imp kevans - Group Reviewers
Klara - Commits
- rGcfb53f983f14: ncal: Error out if writing to stdout failed.
rG5903d9c00b75: ncal: Error out if writing to stdout failed.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Yeah, suggest adding something like: "UNIX conformance requires command-line utilities to detect errors writing to stdout, emit an error message and exit accordingly."
Technically we could check every write, but that seems too invasive and not really any better than just catching it at the end.
Comment Actions
In fact, that seems like it'd be worse. We shouldn't mask other logical errors just because stdout was somehow borked.