fix inotify support
authorJohn (J5) Palmieri <johnp@redhat.com>
Thu, 17 Jan 2008 19:57:47 +0000 (14:57 -0500)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 17 Jan 2008 19:57:47 +0000 (14:57 -0500)
commite1821fc35a292c6685b2fab23d10a2ca2b6ccb90
treea6f46eb39a1a334b501d7413c768902892b7932e
parent9311dea5404df86c425e9678d411166ea81f6cc9
fix inotify support

2008-01-17  Timo Hoenig  <thoenig@suse.de>
* fix inotify support
* bus/dir-watch-inotify.c (_handle_inotify_watch): fix reading of the
inotify events. Also, use ssize_t not size_t for 'ret'.
* bus/dir-watch-inotify.c (bus_watch_directory): watch not only for
IN_MODIFY but also for IN_CREATE and IN_DELETE
* bus/dir-watch-inotify.c (bus_drop_all_directory_watches): drop the
inotify watches more elegantly by closing inotify:_fd, set inotify_fd to
-1 after dropping the watches
ChangeLog
bus/dir-watch-inotify.c