summaryrefslogtreecommitdiff
path: root/src/core/dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-12 05:23:22 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-12 05:40:04 +0100
commit6d99330e26977a9970e33fd83085c8c8c9de660f (patch)
treea96278229825d16f72bf4bba27cbab775efdd90c /src/core/dbus.c
parent4d680aeea1e479f08f3dbdb7430def5d9eefe2ee (diff)
core: fix bus registration on daemon reexec
Diffstat (limited to 'src/core/dbus.c')
-rw-r--r--src/core/dbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c
index 25d83a6942..580bdf3f71 100644
--- a/src/core/dbus.c
+++ b/src/core/dbus.c
@@ -801,7 +801,7 @@ static int bus_setup_api(Manager *m, sd_bus *bus) {
* after the new connection is set up and the name installed
* to allow clients to synchronously wait for reexecution to
* finish */
- r = sd_bus_request_name(bus,"org.freedesktop.systemd1", SD_BUS_NAME_REPLACE_EXISTING|SD_BUS_NAME_DO_NOT_QUEUE);
+ r = sd_bus_request_name(bus,"org.freedesktop.systemd1", SD_BUS_NAME_REPLACE_EXISTING|SD_BUS_NAME_DO_NOT_QUEUE|SD_BUS_NAME_ALLOW_REPLACEMENT);
if (r < 0) {
log_error("Failed to register name: %s", strerror(-r));
return r;