]> git.ipfire.org Git - thirdparty/systemd.git/commit
dbus: stash the subscriber list when we disconenct from the bus
authorRonan Pigott <ronan@rjp.ie>
Thu, 28 Nov 2024 19:53:32 +0000 (12:53 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 9 Oct 2025 11:22:30 +0000 (13:22 +0200)
commit3e4d34a9f8729c67e06c0523ebb298119fc7b141
treefb15a7a050983930b496d6886a277baf4d965723
parent129b52257579dc0b2769da5eb255be3d8d17bf82
dbus: stash the subscriber list when we disconenct from the bus

If we unexpectly disconnect from the bus, systemd would end up dropping
the list of subscribers, which breaks the ability of clients like logind
to monitor the state of units.

Stash the list of subscribers into the deserialized state in the event
of a disconnect so that when we recover we can renew the broken
subscriptions.

(cherry picked from commit 8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98)
src/core/dbus.c
src/core/dbus.h
src/core/manager.c
src/shared/bus-util.c
src/shared/bus-util.h