On Fri Sep 6 16:15:03 2024 +0000, Grigory Vasilyev wrote:
@gofman but I read with `O_RDONLY | O_NONBLOCK`. If it would be better, I can remove O_NONBLOCK and just return an error.
Yes, O_NONBLOCK is not needed and should be removed (even if does nothing for /proc or /sys filesystems).