Re: [RFC v1] man/man2/close.2: CAVEATS: Document divergence from POSIX.1-2024
From: Florian Weimer <hidden>
Date: 2026-01-26 08:52:08
Also in:
linux-fsdevel
From: Florian Weimer <hidden>
Date: 2026-01-26 08:52:08
Also in:
linux-fsdevel
* Zack Weinberg:
In particular, I really hope delayed errors *aren’t* ever reported when you close a file descriptor that *isn’t* the last reference to its open file description, because the thread-safe way to close stdout without losing write errors[2] depends on that not happening.
[2] https://stackoverflow.com/a/50865617 (third code block)
Are you sure about that? It means that errors are never reported if a shell script redirects standard output over multiple commands. Thanks, Florian