This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

terminals getting killed on parent's termination


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]