[Linux-disciples] Killing processes when exiting a shell
Stephen R Laniel
steve at laniels.org
Wed May 24 12:04:17 EDT 2006
On Tue, May 23, 2006 at 01:50:17PM -0400, Adam Rosi-Kessel wrote:
> 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'.
Hm. Check out the man page for bash(1):
The shell exits by default upon receipt of a SIGHUP. Before exiting, an interactive shell resends the SIGHUP to
all jobs, running or stopped. Stopped jobs are sent SIGCONT to ensure that they receive the SIGHUP. To prevent
the shell from sending the signal to a particular job, it should be removed from the jobs table with the disown
builtin (see SHELL BUILTIN COMMANDS below) or marked to not receive SIGHUP using disown -h.
If the huponexit shell option has been set with shopt, bash sends a SIGHUP to all jobs when an interactive login
shell exits.
I wonder if something in the same area would help me here.
--
Stephen R. Laniel
steve at laniels.org
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20060524/3d830d16/attachment.pgp
More information about the Linux-disciples
mailing list