Hacker News new | ask | show | jobs
by vbezhenar 3238 days ago
I'm referring to `fcntl(fd, F_SETFL, flags | O_NONBLOCK)`. `stat`, `open` are blocking, yes, didn't think about that. Also according to [1] file operations will always block, even in non-blocking mode, so I was wrong, sorry.

1: https://www.remlab.net/op/nonblock.shtml

1 comments

> ... Also according to [1] file operations will always block ...

not quite :) look at aio(7)