Re: [systemd-devel] [PATCH 2/7] logind: close races on user and session states during login

2014-02-13 Thread Djalal Harouni
On Fri, Feb 07, 2014 at 04:48:39PM +0100, Lennart Poettering wrote: On Thu, 06.02.14 21:37, Djalal Harouni (tix...@opendz.org) wrote: I think this one I fixed by adding a new stopping variable. Could you check? Yes, the stopping variable caught most of the races, I've sent another patch that

Re: [systemd-devel] [PATCH 2/7] logind: close races on user and session states during login

2014-02-07 Thread Lennart Poettering
On Thu, 06.02.14 21:37, Djalal Harouni (tix...@opendz.org) wrote: I think this one I fixed by adding a new stopping variable. Could you check? Currently the user and session states are not stable, they are affected by several races during login: 1) session state: To get the session

[systemd-devel] [PATCH 2/7] logind: close races on user and session states during login

2014-02-06 Thread Djalal Harouni
Currently the user and session states are not stable, they are affected by several races during login: 1) session state: To get the session state the function session_get_state() is used. Opening state: At login the D-Bus CreateSession() method will call session_start() which calls