Summary: | xdm disables the server if it crashes or fails in the second session | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | John Bowler <jbowler> | ||||
Component: | App/xdm | Assignee: | Xorg Project Team <xorg-team> | ||||
Status: | RESOLVED NOTOURBUG | QA Contact: | Xorg Project Team <xorg-team> | ||||
Severity: | major | ||||||
Priority: | medium | ||||||
Version: | unspecified | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
John Bowler
2010-05-08 18:37:00 UTC
Created attachment 35514 [details] [review] Reduce dm.c server-disable timeout, make timeoout from server start Here's the patch. It is actually against kdm-4.3.5 but I believe they just copied the DM code verbatim so it should apply here too. Anyway, it's ridiculously easy to understand because, unlike the original code, there are comments! BTW, I'm only assuming that the original 120s timeout was meant to deal with precisely this bug - clearly it doesn't, but I assume code rot (after all, the code in question is about old enough to procreate legally in any jurisdiction - let's fix it first.) Here's additional documentation of the scope of the problem (the title is misleading): http://martin.feuersaenger.de/2010/01/26/kdm-fails-to-restart-after-logout/ I suspect it has been there for ever, but it may be that it was introduced in a recent change. If so that change corresponds to some upgrade in KDM 4.x maybe 6 months ago (which is when I started noticing the problem.) I rather suspect, though, that it may be the xorg server changes to font handling that caused me to start to see the issue (since it may be my use of a font server on a remote machine that exposes the problem.) I was wrong: this bug doesn't (or shouldn't) appear in xdm. Sorry: I had not realized how far the KDM backend had diverged from the original (1998) xdm source code. The timeouts in xdm (server.c) seem to be correct. I'm going to swap to xdm to see if it is robust in this case (server crashes under XOpenDisplay on second session) but if it isn't the patch is certainly very different. The timeouts in xdm seem correct (it uses 120s to detect a zombie server but that's fine.) I've confirmed that this isn't a problem in xdm - it correctly restarts the server after the crash at the start of the second session. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.