I have Ubuntu 10.04 (should be up-to-date) and this is what happens with gnome-terminal:
1. gedit
2. Close terminal with the close button on the title bar (or close the corresponding tab).
-> A dialog opens saying "Close this terminal? There is still a process running in this terminal. Closing the terminal will kill it." Both "Cancel" and "Close Terminal" buttons work as expected.
1. gedit &
2. exit
-> Terminal (or the corresponding tab) closes but gedit keeps running.
1. gedit &
2. Close terminal with the close button on the title bar (or close the corresponding tab).
-> Both terminal and gedit die without any warning or question. Any unsaved data will be lost.
I used gedit as an example, but it seems that same things happen with other programs, too (I tested with e.g. emacs, firefox, kile and xdvi).
I have Ubuntu 10.04 (should be up-to-date) and this is what happens with gnome-terminal:
1. gedit
2. Close terminal with the close button on the title bar (or close the corresponding tab).
-> A dialog opens saying "Close this terminal? There is still a process running in this terminal. Closing the terminal will kill it." Both "Cancel" and "Close Terminal" buttons work as expected.
1. gedit &
2. exit
-> Terminal (or the corresponding tab) closes but gedit keeps running.
1. gedit &
2. Close terminal with the close button on the title bar (or close the corresponding tab).
-> Both terminal and gedit die without any warning or question. Any unsaved data will be lost.
I used gedit as an example, but it seems that same things happen with other programs, too (I tested with e.g. emacs, firefox, kile and xdvi).