Skip to content

core: dbus: Interpret released names properly#6175

Merged
keszybz merged 1 commit intosystemd:masterfrom
Werkov:dbus-name-owner-change-reset
Jun 23, 2017
Merged

core: dbus: Interpret released names properly#6175
keszybz merged 1 commit intosystemd:masterfrom
Werkov:dbus-name-owner-change-reset

Conversation

@Werkov
Copy link
Contributor

@Werkov Werkov commented Jun 22, 2017

When a DBus name is released, NameOwnerChanged signal contains an empty string
as new_owner. Commit bbc2908 changed interpretation of the empty string to a
valid name, which is not consistent with values that are sent by dbus-daemon.

As a side effect, this masks symptoms of systemd-logind dbus disconnections
(#2925) by completely restarting it so it can freshly reconnect to dbus.

When a DBus name is released, NameOwnerChanged signal contains an empty string
as new_owner. Commit bbc2908 changed interpretation of the empty string to a
valid name, which is not consistent with values that are sent by dbus-daemon.

As a side effect, this masks symptoms of systemd-logind dbus disconnections
(systemd#2925) by completely restarting it so it can freshly reconnect to dbus.
@poettering
Copy link
Member

lgtm

@poettering poettering closed this Jun 22, 2017
@poettering poettering reopened this Jun 22, 2017
@poettering
Copy link
Member

(sorry, i clicked the wrong button)

@poettering poettering added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Jun 22, 2017
@martinpitt
Copy link
Contributor

Yay, the test retry on s390x worked, so CI is unbroken (due to the machines.mount location change). I'll watch the others and retry.

@keszybz keszybz added pid1 and removed good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed labels Jun 23, 2017
@keszybz keszybz merged commit b007626 into systemd:master Jun 23, 2017
@Werkov Werkov deleted the dbus-name-owner-change-reset branch July 18, 2017 07:45
doylehuang pushed a commit to doylehuang/systemd that referenced this pull request Aug 16, 2018
When a DBus name is released, NameOwnerChanged signal contains an empty string
as new_owner. Commit bbc2908 changed interpretation of the empty string to a
valid name, which is not consistent with values that are sent by dbus-daemon.

As a side effect, this masks symptoms of systemd-logind dbus disconnections
(systemd#2925) by completely restarting it so it can freshly reconnect to dbus.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants