Shell survives killing xterm

Hans Werner Strube strube@physik3.gwdg.de
Mon Apr 1 00:00:00 GMT 2002


> From strube Mon Mar 18 11:27:45 2002
> 
> When an xterm (running bash) is killed, e.g. by twm menu or by exiting the
> xinitrc, the bash survives in the background with PPID 1 and has to be killed
> manually with kill -HUP. The only way to exit xterm neatly seems to be
> calling "exit" in its shell. This is very annoying. Is there a workaround?
> As the man page of bash says SIGTERM and SIGQUIT are ignored by an
> interactive bash, I tried setting
> trap "exit 0" TERM QUIT
> in .bashrc, but without success.

The same happens with tcsh.



More information about the Cygwin-xfree mailing list