]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/manager: restore bus track deserialization cleanup in manager_reload() 35970/head
authorMike Yuan <me@yhndnzj.com>
Mon, 13 Jan 2025 16:30:51 +0000 (17:30 +0100)
committerMike Yuan <me@yhndnzj.com>
Mon, 13 Jan 2025 22:08:35 +0000 (23:08 +0100)
There's zero explanation why it got (spuriously) removed in
8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98...

src/core/manager.c

index b749b0e1cab824078523cc7f0862cc8da130985c..8f1dc626c2cbec03db72a149f838bb1167bc7a37 100644 (file)
@@ -3801,6 +3801,11 @@ int manager_reload(Manager *m) {
         (void) manager_setup_handoff_timestamp_fd(m);
         (void) manager_setup_pidref_transport_fd(m);
 
+        /* Clean up deserialized bus track information. They're never consumed during reload (as opposed to
+         * reexec) since we do not disconnect from the bus. */
+        m->subscribed_as_strv = strv_free(m->subscribed_as_strv);
+        m->deserialized_bus_id = SD_ID128_NULL;
+
         /* Third, fire things up! */
         manager_coldplug(m);