diff options
author | Colin Walters <walters@verbum.org> | 2010-02-02 12:37:17 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-02-03 12:05:28 -0500 |
commit | 7bc27d1e844561ae8db065ae7e47d2a9e150d524 (patch) | |
tree | c4e457510387388490b74fba5d95bc5189901164 /bus/bus.c | |
parent | b43d3428463ff9f2454e2c67ee4eb98dcebd94f5 (diff) | |
download | dbus-7bc27d1e844561ae8db065ae7e47d2a9e150d524.tar.gz |
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)
Diffstat (limited to 'bus/bus.c')
-rw-r--r-- | bus/bus.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -562,12 +562,6 @@ process_config_postinit (BusContext *context, return TRUE; } -static void -bus_shutdown_all_directory_watches (void *data) -{ - bus_set_watched_dirs ((BusContext *) data, NULL); -} - BusContext* bus_context_new (const DBusString *config_file, ForceForkSetting force_fork, @@ -599,8 +593,6 @@ bus_context_new (const DBusString *config_file, _dbus_generate_uuid (&context->uuid); - _dbus_register_shutdown_func (bus_shutdown_all_directory_watches, context); - if (!_dbus_string_copy_data (config_file, &context->config_file)) { BUS_SET_OOM (error); |