gio-kqueue: use O_EVTONLY on MacOS
authorAntoine Jacoutot <ajacoutot@gnome.org>
Sat, 17 Nov 2012 08:44:48 +0000 (09:44 +0100)
committerAntoine Jacoutot <ajacoutot@gnome.org>
Sat, 17 Nov 2012 15:32:23 +0000 (16:32 +0100)
commit596f96b08db1b99c820e397cb2030fa27e79ff96
tree29b751a12523b73461460ce0aa85ab015ced6f6c
parentef8510be09a746dcbc8d470376688820b225c40f
gio-kqueue: use O_EVTONLY on MacOS

MacOS provides the O_EVTONLY flag to open(2) which allow to open a file
for monitoring without preventing an unmount of the volume that contains
it.

https://bugzilla.gnome.org/show_bug.cgi?id=688518
gio/kqueue/kqueue-exclusions.c
gio/kqueue/kqueue-helper.c