[systemd-bugs] [Bug 67273] logind writes out session state file before creating fifo so users end up in CLOSING state
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jul 26 10:02:09 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=67273
--- Comment #3 from Lennart Poettering <lennart at poettering.net> ---
(In reply to comment #2)
> Looks fine, thanks!
>
> Two comments, but these things probably don't matter that much in practice:
>
> 1) the state file will briefly begin its life with CLOSING written in it,
> which isn't really accurate, though maybe that's inconsequential.
No it will briefly have "OPENING" in it. See session_get_state(): it will
return OPENING if there's the scope job still pending. The problem was simply
that we saved the state at a time where the scope job was finished but the fifo
not set up yet...
> 2) you send out the reply before saving the state file, so, in theory,
> there's a small race where a client could get the reply and then proceed to
> check the state file and still read stale information. It's a pretty small
> race though.
Hmm, so that's indeed something to fix!
Done so now in 7c6e214aeb141e6d514ddd9237a956278c4afc8c.
Thanks for have a closer look, much appreciated!
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20130726/561165b1/attachment.html>
More information about the systemd-bugs
mailing list