Problem
An X server started by a non-root user using startx(X)
or xinit(X) may hang at exit time if Mozilla or Java was ever
run on the X server. This does not happen with X servers
started via scologin(XC), or by the root user using any method. Solution
This has been reported to SCO Engineering.
A workaround is possible as follows. When running startx, use the following command line switches;
$ startx -- -terminate; sleep 1