chiark / gitweb /
logind: use session_get_state() to get sessions state of the user
authorDjalal Harouni <tixxdz@opendz.org>
Sat, 8 Feb 2014 19:51:57 +0000 (20:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Feb 2014 19:31:16 +0000 (20:31 +0100)
commit00555a2ee1b008bccbb570320047307b8b9159f9
tree40970434f721268780e8f804dda009c49c3f53e8
parent70d9b9fc0a4fa1698ff00e364c61bb875244efa1
logind: use session_get_state() to get sessions state of the user

In function user_get_state() remove the session_is_active() check, just
count on the session_get_state() function to get the correct session
state.

session_is_active() may return true before starting the session scope
and user service, this means it will return true even before the creation
of the session fifo_fd which will produce incorrect states.

So be consistent and just use session_get_state().
src/login/logind-user.c