chiark / gitweb /
dbus-unit: always load the unit before handling a message for it
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 21 May 2012 10:54:34 +0000 (12:54 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Mon, 21 May 2012 10:54:34 +0000 (12:54 +0200)
commit80fbf05e75b75b7dd342ec844275efae90c479ec
tree628670675a636a0532e5fa8da51bcdef47e73b8a
parentc0ef53aa5b54e2b1d4abe316ebb12d3e1d0d9250
dbus-unit: always load the unit before handling a message for it

We need to be able to show the properties even of inactive units.
systemctl loads the unit before getting its properties, but this is racy
as the garbage collector may kick in right after the loading.

Fix it by always loading the unit before handling a message for it.

https://bugzilla.redhat.com/show_bug.cgi?id=814966#c6
src/core/dbus-unit.c
src/core/manager.c
src/core/manager.h