Lines Matching refs:watch
2 /* dir-watch-inotify.c OS specific directory change notification for message bus
37 #include <dbus/dbus-watch.h>
38 #include "dir-watch.h"
49 static DBusWatch *watch = NULL;
148 /* FIXME - less lame error handling for failing to add a watch; we may need to sleep. */
170 * watch. (In reality though, the whole OOM handling in dbus is stupid
201 if (watch != NULL)
203 _dbus_loop_remove_watch (loop, watch);
204 _dbus_watch_invalidate (watch);
205 _dbus_watch_unref (watch);
208 watch = NULL;
240 watch = _dbus_watch_new (inotify_fd, DBUS_WATCH_READABLE, TRUE,
243 if (watch == NULL)
245 _dbus_warn ("Unable to create inotify watch\n");
249 if (!_dbus_loop_add_watch (loop, watch))
251 _dbus_warn ("Unable to add reload watch to main loop");
252 _dbus_watch_unref (watch);
253 watch = NULL;
260 _dbus_watch_unref (watch);
261 watch = NULL;