Just to follow up, I added the line "exec /opt/X11/bin/xterm" to my .xinitrc and things went fine. No race condition. I was able to run gdb on the window manager from that xterm. When I exited xterm, X11 exited cleanly.
Previously, I was trying to use the xterm that is launched by launchd as "program to run". That xterm never appeared, when my .xinitrc was empty. Guess I learned a lesson: don't have an empty .xinitrc. Thanks again for the quick help. Dave _______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/xquartz-dev