[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XDM loop: Alternate fix?



-----BEGIN PGP SIGNED MESSAGE-----


On 18-Feb-98 Erik Walthinsen wrote:
- -> But.... if the X server fails further into the process, say sometime after 
- -> the 5sec delay, then you're back to the loop.  If what you're saying is 
- -> correct, that tells me that not all the checks are run (in the X server 
- -> itself) before Xsetup is called.  Besides, Xsetup is called from XDM, not 
- -> the X server.

XDM does call Xsetup.  XDM *also* cathes SIGHUP and SIGTERM from the Xserver. 
That is what makes it restart.  So XDM calls Xserver then turns to Xsetup, which
must wait on the Xserver since it effects the display, and immediately recieves
a signal from Xserver and restarts without running Xsetup.

- -> Xservers is the only place the path to the actual server is listed.  The 
- -> XDM man page is less than useful, though.  I'll have to try it out tomorrow.

Right, but in the man page it recomends using the entire path so XDM has a
large enough buffer to manipulate the command line.  It adds -display to all of
it's processes for ID purposes and uses that buffer to make the changes.

But there are many possibilities.  This fix was off the cuff, took me about 10
min's to do just to quel the use of the loop as an argument to not use XDM.  I
intend on adding more functionality to that script to catch hard resets and
other such unclean stopping of the GUI to put the user into a failsafe of sorts.

The more constructive input we get, the more polished and fool-proof the thing
will be.

- ---
E-Mail: Cyberdyn@seul.org       Date: 18-Feb-98        Time: 03:49:05
Be wary of strong drink.  It can make you shoot at tax collectors and miss.
                -- Lazarus Long, "Time Enough for Love"


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3a
Charset: noconv

iQCVAwUBNOqghErwMsuKKoVhAQGD0AQAsnU1195tuPu9BRhY96AqjQC4jlzZaBcO
VPOKAZwJj0FT9lVf9m5L1OcU2HNu+UQ6ZT3es1ukEslTifF/kltM4a/dO7k3Avj2
UFaO9sj3hyvkIGeOxA/UGguZLaTrbVstJL+7J2iWP3z9P57kyrS4ecLLWNfHwm/g
5XHCDgpzSBk=
=XvUC
-----END PGP SIGNATURE-----