*getsockopt*, of all things?
Posted Jul 2, 2009 18:05 UTC (Thu) by quotemstr
In reply to: *getsockopt*, of all things?
Parent article: The fanotify API
giving the filename and letting the app do its own open
select()/poll() gets kluged up to falsely indicate readability
Well, to be fair, select even on ordinary objects doesn't indicate readability. It's more like "it might have been readable sometime in the recent past, if you're lucky". That's why you always call select() on non-blocking sockets, and why you always prepare to get EAGAIN even after select() reports a file descriptor to be readable.
to post comments)