terminals getting killed on parent's termination
Thomas Wolff
towo@towo.net
Fri Feb 26 14:46:00 GMT 2010
In general, a GUI application started in the background, like a terminal,
should detach itself from its parent process so that it survives if the
parent is terminated.
I've noticed the following sometimes surprising inconsistencies about this:
mintty
xterm &
mintty &
exit
-> all child terminals remain
mintty
xterm &
mintty &
Close/Alt-F4
-> dialog "Processes are running in session. Exit anyway?"
OK
-> xterm remains
-> mintty is killed
xterm
xterm &
mintty &
exit
-> all child terminals remain
xterm
xterm &
mintty &
Close/Quit
-> xterm remains
-> mintty is killed
cygwin console
xterm &
mintty &
exit/Alt-F4
-> console hangs
Close
-> mintty remains
-> xterm is killed
I noticed, just as a testcase, that in those cases mintty gets killed
also setup.exe gets killed.
Also, mintty can be protected from being killed by spawning it with
(mintty&)
while xterm, spawned this way from a cygwin console, still gets killed.
Puzzled
Thomas
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list