Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stash the subscriber list when we disconenct from the bus #35406

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rpigott
Copy link
Contributor

@rpigott rpigott commented Nov 28, 2024

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.


Fixes: #8672 #26744

This is an interesting event. Let's log about it.
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.
@github-actions github-actions bot added the please-review PR is ready for (re-)review by a maintainer label Nov 28, 2024
@rpigott rpigott marked this pull request as draft November 28, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please-review PR is ready for (re-)review by a maintainer
Development

Successfully merging this pull request may close these issues.

systemd-login sessions remain in closing state after systemctl daemon-reload
1 participant