*getsockopt*, of all things?
*getsockopt*, of all things?
Posted Jul 2, 2009 18:01 UTC (Thu) by RobSeace (subscriber, #4435)In reply to: *getsockopt*, of all things? by quotemstr
Parent article: The fanotify API
Oh yeah, I kind of missed the whole FD passing part of the API... (Is that really necessary, instead of, say, giving the filename and letting the app do its own open, or whatever it wants to do to the file?)
But, yeah, I think your netlink + control message idea sounds a lot better than this method, anyway... I still don't get how the app will be notified when it's supposed to do the getsockopt(), unless select()/poll() gets kluged up to falsely indicate readability (when you can't really read from it) when one of these events are ready to be retrieved...
