]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/socket.c
core: whenever we change state of a unit, force out PropertiesChanged bus signal
[thirdparty/systemd.git] / src / core / socket.c
index f725c9eb009cdf7428722c3c6596bf352f086eef..d3dc0a3216855fab27708f6748550d70cb94c1b1 100644 (file)
@@ -17,6 +17,7 @@
 #include "bus-util.h"
 #include "copy.h"
 #include "dbus-socket.h"
+#include "dbus-unit.h"
 #include "def.h"
 #include "exit-status.h"
 #include "fd-util.h"
@@ -1748,6 +1749,9 @@ static void socket_set_state(Socket *s, SocketState state) {
         SocketState old_state;
         assert(s);
 
+        if (s->state != state)
+                bus_unit_send_pending_change_signal(UNIT(s), false);
+
         old_state = s->state;
         s->state = state;