How do I prevent a script from terminating when the shell exits?
I use gnome-terminal, and I run
emacs under the terminal in the background by executing
emacs &, but after I close the terminal,
emacs is also closed. How can I avoid this behavior? I know that
emacs is a child process of the shell.