Subject: Re: bash and '&'
From: [email-masked] (Chet Ramey)

8 Apr 1998 21:28:36 -0700
Message-ID: <[email-masked]>
References: <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: [email-masked]
Cc: [email-masked], [email-masked]

> This is taken from the bash.info file:
> ---from bash.info---
> The shell exits by default upon receipt of a `SIGHUP'.  Before exiting, 
> it resends the `SIGHUP' to all jobs, running or stopped.  To
> prevent the shell from sending the `SIGHUP' signal to a particular job, 
> remove it from the jobs table with the `disown' builtin (*note Job 
> Control Builtins::.) or use `disown -h' to mark it to not receive
> `SIGHUP'.
> ---end bash.info---
> 
> I could find no switches to force this to happen automatically.  Perhaps 
> the AIX bash you used was modified to allow this to happen.

The other half of that is that if bash does *not* exit as the result
of a SIGHUP, such as an EOF on stdin or via the `exit' builtin, it
does not send SIGHUP to any jobs at all.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, Case Western Reserve University	Internet: [email-masked]
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".