Re: [systemd-devel] [PATCH] logind: use session_get_state() to get sessions state of the user

2014-02-11 Thread Lennart Poettering
On Sat, 08.02.14 20:51, Djalal Harouni (tix...@opendz.org) wrote: > 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 > a

Re: [systemd-devel] [PATCH] logind: use session_get_state() to get sessions state of the user

2014-02-09 Thread Djalal Harouni
On Sun, Feb 09, 2014 at 01:48:04AM +0100, Zbigniew Jędrzejewski-Szmek wrote: > On Sat, Feb 08, 2014 at 10:20:53PM +0100, Djalal Harouni wrote: > > On Sat, Feb 08, 2014 at 10:01:18PM +0100, Zbigniew Jędrzejewski-Szmek wrote: > > > On Sat, Feb 08, 2014 at 08:51:57PM +0100, Djalal Harouni wrote: > > >

Re: [systemd-devel] [PATCH] logind: use session_get_state() to get sessions state of the user

2014-02-08 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Feb 08, 2014 at 10:20:53PM +0100, Djalal Harouni wrote: > On Sat, Feb 08, 2014 at 10:01:18PM +0100, Zbigniew Jędrzejewski-Szmek wrote: > > On Sat, Feb 08, 2014 at 08:51:57PM +0100, Djalal Harouni wrote: > > > In function user_get_state() remove the session_is_active() check, just > > > coun

Re: [systemd-devel] [PATCH] logind: use session_get_state() to get sessions state of the user

2014-02-08 Thread Djalal Harouni
On Sat, Feb 08, 2014 at 10:01:18PM +0100, Zbigniew Jędrzejewski-Szmek wrote: > On Sat, Feb 08, 2014 at 08:51:57PM +0100, Djalal Harouni wrote: > > In function user_get_state() remove the session_is_active() check, just > > count on the session_get_state() function to get the correct session > > sta

Re: [systemd-devel] [PATCH] logind: use session_get_state() to get sessions state of the user

2014-02-08 Thread Zbigniew Jędrzejewski-Szmek
On Sat, Feb 08, 2014 at 08:51:57PM +0100, Djalal Harouni wrote: > 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

[systemd-devel] [PATCH] logind: use session_get_state() to get sessions state of the user

2014-02-08 Thread Djalal Harouni
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