mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
Adapt testfilemonitor.c for libinotify-kqueue backend
The backend mimics inotify but is still subject to kevent idionsyncracies.
This commit is contained in:
@@ -116,11 +116,15 @@ static const gchar DONT_CARE[] = "";
|
||||
static Environment
|
||||
get_environment (GFileMonitor *monitor)
|
||||
{
|
||||
if (g_str_equal (G_OBJECT_TYPE_NAME (monitor), "GInotifyFileMonitor"))
|
||||
#if defined(FILE_MONITOR_BACKEND_INOTIFY)
|
||||
return INOTIFY;
|
||||
if (g_str_equal (G_OBJECT_TYPE_NAME (monitor), "GKqueueFileMonitor"))
|
||||
#elif defined(FILE_MONITOR_BACKEND_KQUEUE)
|
||||
return KQUEUE;
|
||||
#elif defined(FILE_MONITOR_BACKEND_LIBINOTIFY_KQUEUE)
|
||||
return INOTIFY | KQUEUE;
|
||||
#else
|
||||
return NONE;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user