[comp.windows.x] Killing clients on an X terminal

bpane@tnds.bellcore.com (Brian Pane) (06/22/91)

What is the polite way of killing one's X clients upon exiting the window
manager when using an X terminal?  I'm not using xdm; I run the commands in
my .xinitrc (with "exec mwm" as its last line) manually with a shell exec'ed
from my login shell.  When I terminate the window manager, everything but
xterms and emacs dies.  I can't figure out what xterm and emacs have in
common (not uid or response to signals, as far as I can tell) that allows
them to survive, nor what specifically causes the rest of the clients to
die when the parent process exits.

I've solved my problems by using xmexit, which destroys everything on
my screen quite effectively, but I'd like to understand why the clients
behave as they do upon mwm's normal exit.  (I found the same results
with twm.)

Can someone explain what I'm missing?

Thanks,
-Brian		bpane@tnds.bellcore.com