]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: enqueue unit earlier when state changes
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Nov 2018 17:48:52 +0000 (18:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 1 Dec 2018 11:53:26 +0000 (12:53 +0100)
commit3c4832ada41466b87203ad145af1af2b0040dcf5
tree08e4afb99a609804eb3b1653717c0a94fb1eae31
parente6d05912cb1785d8c75eb40545beb8a7c6753cb9
core: enqueue unit earlier when state changes

Previously, we'd enqueue a unit to the dbus queue whenever the state
changed, after we processed the state change fully. This commit to the
beginning of the state change. This has the benefit that when the state
change causes a job to complete the unit is already in the dbus queue,
and thus we get the guarantee that any unit change can be sent out to
clients before the job change.
src/core/unit.c