]> 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)
committerRonan Pigott <ronan@rjp.ie>
Wed, 8 Jan 2025 22:50:56 +0000 (15:50 -0700)
commit8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98
treeb2d7865e55fd2a518c604ef121a720e771e0575a
parentc5f95bc19b227cd5294502fa36638052c62a7760
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.
src/core/dbus.c
src/core/dbus.h
src/core/manager.c
src/shared/bus-util.c
src/shared/bus-util.h