4 ms·
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
by vbezhenar 9y 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 https://www.remlab.net/op/nonblock.shtml
- signa11 9y ago> ... Also according to [1] file operations will always block ... not quite :) look at aio(7)