X server fails to start

Charles Wilson cygwin@cwilson.fastmail.fm
Tue Dec 29 07:01:00 GMT 2009

Feng Dai wrote:

> The root cause is checkX doesn't work properly. It cause XWin failed on
> initClipboard and exit itself. The work around is either comment out checkX or
> have a "sleep 3" to let XWin server startup before checkX runs.

It's actually not checkX's fault that the Xserver dies.  All checkX does
is try to call XOpenDisplay(). However, in the current usage by the
startup scripts, checkX will do so /repeatedly/ during the period when
the Xserver is just getting started.

XWin appears to be fragile at that stage in its execution.

So, the latest version of checkX tries to be gentle with the Xserver
when that Xserver is just launching.

To try it out, you should make the relevant part of startxwin.bat look
like this:

%RUN% bash -l -c "XWin -multiwindow -clipboard -silent-dup-error"

REM Make sure XWin is ready to accept connections before proceeding
checkX -d %DISPLAY% -t 12

That is, don't use %RUN% to invoke checkX.


Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/

More information about the Cygwin-xfree mailing list