Re:Why stdout is faster than stderr?
by nerdponx on Wednesday January 10, 2024 @02:02PM
(#38941884)
Is this a Linux implementation detail, or is it a feature of POSIX systems generally?
[ Parent
| on HN ]
POSIX says that stderr shouldn't be "fully buffered" https://pubs.opengroup.org/onlinepubs/9699919799/functions/s... but I believe that allows for line buffering. Its terminology can be found here: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/st... (look for _IOFBF).
Re:Why stdout is faster than stderr?
by thesuitonym on Wednesday January 10, 2024 @02:53PM
(#38942340)
OpenBSD's stderr seems to be buffered, so it may just be a Linux thing.
That page says the opposite:
> Initially, the standard error stream is unbuffered.
Re:Why stdout is faster than stderr?
by thesuitonym on Friday January 12, 2024 @05:25PM
(#38974978)
I have no idea how I read that so wrong. Mea culpa.