summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2006-03-06 19:06:45 +0000
committerSjoerd Simons <sjoerd@luon.net>2006-03-06 19:06:45 +0000
commitcaf220015ba1afd9dfca2a93cfa5208058041610 (patch)
tree41b9d74aa70559e2c77a1b11e65f1cd8db7319f2 /bus
parent074b0b86747198ee1862ca0450d5192137cccdee (diff)
* bus/bus.c: (bus_context_reload_config): Flush the user database cache on
config reload. * bus/dbus-daemon.1.in: Also note that SIGHUP flushes the user/group information caches * dbus/dbus-hash.c: (_dbus_hash_table_remove_all): * dbus/dbus-hash.h: Add function to remove all entries from a hash table * dbus/dbus-userdb.c: (_dbus_user_database_flush): * dbus/dbus-userdb.h: Add function to flush all user/group information caches.
Diffstat (limited to 'bus')
-rw-r--r--bus/bus.c3
-rw-r--r--bus/dbus-daemon.1.in7
2 files changed, 7 insertions, 3 deletions
diff --git a/bus/bus.c b/bus/bus.c
index 48aae8e8..8e4f0ea0 100644
--- a/bus/bus.c
+++ b/bus/bus.c
@@ -790,6 +790,9 @@ bus_context_reload_config (BusContext *context,
DBusString config_file;
dbus_bool_t ret;
+ /* Flush the user database cache */
+ _dbus_user_database_flush(context->user_database);
+
ret = FALSE;
_dbus_string_init_const (&config_file, context->config_file);
parser = bus_config_load (&config_file, TRUE, NULL, error);
diff --git a/bus/dbus-daemon.1.in b/bus/dbus-daemon.1.in
index 5144bc18..be2fac0a 100644
--- a/bus/dbus-daemon.1.in
+++ b/bus/dbus-daemon.1.in
@@ -51,9 +51,10 @@ in any way).
.PP
SIGHUP will cause the D-BUS daemon to PARTIALLY reload its
-configuration file. Some configuration changes would require kicking
-all apps off the bus; so they will only take effect if you restart the
-daemon. Policy changes should take effect with SIGHUP.
+configuration file and to flush its user/group information caches. Some
+configuration changes would require kicking all apps off the bus; so they will
+only take effect if you restart the daemon. Policy changes should take effect
+with SIGHUP.
.SH OPTIONS
The following options are supported: