GNOME Bugzilla – Bug 688518
gio-kqueue: use O_EVTONLY on MacOS
Last modified: 2012-11-17 15:33:12 UTC
Created attachment 229219 [details] [review] use O_EVTONLY on MacOS Hi. MacOS X is able to open(2) a descriptor requested for event notifications only by using the O_EVTONLY flag. From the man page: the O_EVTONLY flag is only intended for monitoring a file for changes (e.g. kqueue). Note: when this flag is used, the opened file will not prevent an unmount of the volume that contains the file. That means we don't need to exclude any file from monitoring. This patch addresses that. Would that be alright to push?
Review of attachment 229219 [details] [review]: Makes sense.
Thanks Colin. Pushed as 596f96b.