Re: git: c2d93a803ace - main - env: Check the status of stdout.
Date: Wed, 09 Oct 2024 12:40:18 UTC
Konstantin Belousov <kostikbel@gmail.com> writes: > Dag-Erling Smørgrav <des@FreeBSD.org> writes: > > Konstantin Belousov <kostikbel@gmail.com> writes: > > > Why is this check needed? > > POSIX requires it. > Could you please point me to the requirement? General Assertion 39 in the Unix Conformance test suite. Not sure exactly which part of the standard it maps to. > Some programs do this 'err(1, "stdout")' call due to libxo error, > which is not exactly due to stdout error state. Yes, this is how we detect a write error on stdout when using libxo. DES -- Dag-Erling Smørgrav - des@FreeBSD.org