Closed GoogleCodeExporter closed 9 years ago
That's a bash feature actually, and it should be the same behaviour in xterm.
It is
for me anyway. You will see a difference though depending on how you close your
session.
If you close it by typing Ctrl+D or the exit command, bash will leave the
background
processes running unless you have the 'huponexit' option set. It's off by
default.
(See the bash manual for more on that.)
But if you close it by pressing mintty's or xterm's close button, then a HUP
signal
is sent to bash, and bash forwards that to its child processes, independent of
the
'huponexit' setting.
You can stop that from happening either on a process-by-process basis using
'nohup'
or 'disown', or generally by mapping the HUP signal to 'exit':
trap exit HUP
Original comment by andy.koppe
on 29 Apr 2010 at 8:44
Original issue reported on code.google.com by
dbgr...@gmail.com
on 29 Apr 2010 at 3:44