bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash sends SIGHUP to disowned children in non-interactive mode


From: Chet Ramey
Subject: Re: bash sends SIGHUP to disowned children in non-interactive mode
Date: Thu, 29 Dec 2011 12:02:18 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 12/28/11 5:57 PM, Philip wrote:

> So without job control bash might (I know, we don't know for sure)
> send the SIGHUP to all processes started in the shell, whether child
> by definition or not?

No, it doesn't.

> Shouldn't the -i flag enable job control by the way?

Yes, and it does.  The problem is that bash inappropriately turns job
control off if -i is supplied with a shell script.  I've attached a
patch that fixes that.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/

Attachment: job-control-init.patch
Description: Source code patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]