From: Michael Olbrich Date: Fri, 9 Sep 2016 15:05:06 +0000 (+0200) Subject: unit: sent change signal before removing the unit if necessary (#4106) X-Git-Tag: v232~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dd99f86addd1f81e24e89807b6bc4aab57d5793;p=thirdparty%2Fsystemd.git unit: sent change signal before removing the unit if necessary (#4106) If the unit is in the dbus queue when it is removed then the last change signal is never sent. Fix this by checking the dbus queue and explicitly send the change signal before sending the remove signal. --- diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 1b86bdde438..5020dfba4b0 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -1167,7 +1167,7 @@ void bus_unit_send_removed_signal(Unit *u) { int r; assert(u); - if (!u->sent_dbus_new_signal) + if (!u->sent_dbus_new_signal || u->in_dbus_queue) bus_unit_send_change_signal(u); if (!u->id)