]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-user.c
logind: If all user sessions are in closing state, set the overall status to closing.
authorColin Guthrie <colin@mageia.org>
Mon, 3 Sep 2012 22:47:01 +0000 (23:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Sep 2012 06:19:40 +0000 (08:19 +0200)
commitc9caad802128a5dc599342c1400a61f31e8b17b5
treedae3d4c625a726d4fba51d0f8a193d9a3f33d63f
parentf904bdf2e9f6f858802489ab07ff070d4677bccb
logind: If all user sessions are in closing state, set the overall status to closing.

PulseAudio for example will keep a client connection open provided
at least one session exists. However, if all sessions are currently
in the process of closing, we should flag that as the overall state
appropriately to better reflect what is happening.

Although this does better reflect the status for any given user, it does
not actually solve the overall problem of PulseAudio still finding some
sessions active and thus not exiting and therefore actually preventing
the session from closing. Future commits will extend sd-login to cope
with this situation.
src/login/logind-user.c