]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-dbus.c
logind: don't misunderstand UnitRemoved signals during reloading
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2013 21:31:40 +0000 (23:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2013 21:41:03 +0000 (23:41 +0200)
commit6797c324a653f119a3d7133122648aaa4878ddd6
treeeca8fabe59addcf4762bf934df623c176bc23242
parent72673e866a83e6aafdbb599eb3eff2617b7dc79d
logind: don't misunderstand UnitRemoved signals during reloading

When PID 1 reloads the units logind/machined will see UnitRemoved
signals for all units. Instead of trusting these immediately, let's
check the actual unit state before considering a unit gone, so that
reloading PID 1 is not mistaken as the end of all sessions.
src/login/logind-dbus.c
src/login/logind.c
src/machine/machined-dbus.c
src/machine/machined.c