summaryrefslogtreecommitdiff
path: root/src/dbus-unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-22 04:27:24 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-22 04:27:24 +0200
commit7535cc788e37afaf9904d0ee8e2b98f1cb3a4cbd (patch)
tree5c7cb75ede06983171aabe98eb0cb825f1192fd6 /src/dbus-unit.c
parent967d86b5cbc39f2b6edeea7ae109dbfcaaf4f006 (diff)
systemctl: add --block switch for synchronous starting of units
Diffstat (limited to 'src/dbus-unit.c')
-rw-r--r--src/dbus-unit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dbus-unit.c b/src/dbus-unit.c
index 5c474c0c1e..ba428a8d5c 100644
--- a/src/dbus-unit.c
+++ b/src/dbus-unit.c
@@ -421,9 +421,12 @@ void bus_unit_send_removed_signal(Unit *u) {
assert(u);
- if (set_isempty(u->meta.manager->subscribed) || !u->meta.sent_dbus_new_signal)
+ if (set_isempty(u->meta.manager->subscribed))
return;
+ if (!u->meta.sent_dbus_new_signal)
+ bus_unit_send_change_signal(u);
+
if (!(p = unit_dbus_path(u)))
goto oom;