]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/manager.c
core: check for SERVICE_RELOAD_NOTIFY in manager_dbus_is_running
authormsizanoen1 <msizanoen@qtmlabs.xyz>
Tue, 2 May 2023 09:59:07 +0000 (16:59 +0700)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 May 2023 15:14:35 +0000 (00:14 +0900)
commit845824acddf2e7e08c94afe7cfee6e50a682c947
tree4e12c1a3d07fa64daf56b442172a55d5de7d1cd2
parent5789c60973ec2aafbe30685a5c38d40b12e23107
core: check for SERVICE_RELOAD_NOTIFY in manager_dbus_is_running

This ensures that systemd won't erronously disconnect from the system
bus in case a bus recheck is triggered immediately after the bus service
emits `RELOADING=1`.

This fixes an issue where systemd-logind sometimes randomly stops
receiving `UnitRemoved` after a system update.

This also handles SERVICE_RELOAD_SIGNAL just in case somebody ever
creates a D-Bus broker implementation that uses `Type=notify-reload`.
src/core/manager.c