Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Oct 2024 14:40:18 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@FreeBSD.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        src-committers@freebsd.org,  dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: c2d93a803ace - main - env: Check the status of stdout.
Message-ID:  <86cyk9v499.fsf@ltc.des.dev>
In-Reply-To: <ZwZ0erARk2ZKAeBv@kib.kiev.ua> (Konstantin Belousov's message of "Wed, 9 Oct 2024 15:18:02 %2B0300")
References:  <202410081702.498H2KIP072012@gitrepo.freebsd.org> <ZwVuwK9Lry_6JDay@kib.kiev.ua> <86iku2v3o2.fsf@ltc.des.dev> <ZwZ0erARk2ZKAeBv@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Konstantin Belousov <kostikbel@gmail.com> writes:
> Dag-Erling Sm=C3=B8rgrav <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
--=20
Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86cyk9v499.fsf>