Fix inotify shutdown
authorColin Walters <walters@verbum.org>
Tue, 2 Feb 2010 17:37:17 +0000 (12:37 -0500)
committerColin Walters <walters@verbum.org>
Wed, 3 Feb 2010 17:05:28 +0000 (12:05 -0500)
commit7bc27d1e844561ae8db065ae7e47d2a9e150d524
treec4e457510387388490b74fba5d95bc5189901164
parentb43d3428463ff9f2454e2c67ee4eb98dcebd94f5
Fix inotify shutdown

We were incorrectly passing NULL for a DBusList when the usage expected
is a pointer to a NULL DBusList pointer.  Also during dbus_shutdown
we need to actually close the inotify fd, and remove our watch.

Move the shutdown handler out of bus.c and into inotify where we
can do all of this cleanly.
(cherry picked from commit 90fe96b1875350f86a4a773d4a0a22009950dd4d)
bus/bus.c
bus/dir-watch-inotify.c