On Mon Jun 23 11:11:52 2025 +0000, Jacek Caban wrote:
The usual approach is to fail immediately. If the caller intends to wait in such cases, it can do so by retrying on its own. Sleeping inside a function that's otherwise non-blocking doesn't seem appropriate.
Also there is no need to map a file, only to read 4-8 bytes.