xserver: Branch 'master' - 2 commits
daniel at fooishbar.org
Tue Nov 21 11:52:30 PST 2006
On Tue, Nov 21, 2006 at 07:22:24PM +0000, Alan Hourihane wrote:
> On Sat, 2006-11-18 at 23:01 +0200, Daniel Stone wrote:
> > On Sat, Nov 18, 2006 at 11:57:09AM -0800, Alan Hourihane wrote:
> > > Shutdown input devices if FatalError occurs during startup.
> > > Fixes Xdmx problems when the input device has been initialized
> > > and the keyboard map has been destroyed.
> > Hi Alan,
> > Could you please elaborate on which problem this actually fixes?
> > (Particularly as Xdmx doesn't even build currently.) It's quite ugly,
> > and presumably implies that FatalError/AbortDDX isn't doing its job of
> > bringing the server down correctly.
> Any server that initialises the keyboard and does anything funky with it
> (as Xdmx does) via InitAndStartDevices() and then a FatalError occurs
> (say because of a bad fontpath), the keyboard (as well as other input
> devices) don't get cleaned up because they never get called with
> If there's some cleaner way, please go ahead.
If Xdmx really needs to have each device's close hook called, then it
should be calling CloseDownDevices in AbortDDX, or OsCleanup should call
CloseDownDevices itself. You've only guarded against two or three fatal
errors here, and there are many more ...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the xorg