[Linux-disciples] Killing processes when exiting a shell
Adam Rosi-Kessel
adam at rosi-kessel.org
Tue May 23 13:50:17 EDT 2006
Stephen R Laniel wrote:
> Try the following sequence of actions:
>
> 1) Start a process -- say, mutt -- from the terminal.
> 2) Suspend it with Ctrl+Z.
> 3) You're now back at the terminal window. Type 'exit'.
> 4) The shell warns you that there are jobs still running.
> Type 'exit' again. The shell quits, and with it the mutt
> process.
>
> Is there any way to get the shell not to quit, even if you
> type exit twice? I've accidentally killed a number of
> processes that way.
You can always bg the process before exiting; then it won't be killed.
Other than that, I think you'd need to make a wrapper around 'exit'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060523/ef0c45d0/signature.pgp
More information about the Linux-disciples
mailing list