Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11512

Re: SIGINT handling

Path csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail
From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: SIGINT handling
Date Sat, 19 Sep 2015 21:28:24 -0400
Organization ITS, Case Western Reserve University
Lines 32
Approved bug-bash@gnu.org
Message-ID <mailman.1424.1442712513.19560.bug-bash@gnu.org> (permalink)
References <20150918151439.GA16455@chaz.gmail.com> <55FDC8B4.4000505@case.edu> <20150919213101.GA4393@chaz.gmail.com>
Reply-To chet.ramey@case.edu
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1442712513 13219 208.118.235.17 (20 Sep 2015 01:28:33 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash <bug-bash@gnu.org>, chet.ramey@case.edu
To Stephane Chazelas <stephane.chazelas@gmail.com>
Envelope-to bug-bash@gnu.org
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
In-Reply-To <20150919213101.GA4393@chaz.gmail.com>
X-Junkmail-Whitelist YES (by domain whitelist at mpv2.tis.cwru.edu)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-Received-From 129.22.105.37
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11512

Show key headers only | View raw


On 9/19/15 5:31 PM, Stephane Chazelas wrote:
> 2015-09-19 16:42:28 -0400, Chet Ramey:
> [...]
>> I'm surprised you've managed to avoid the dozen or so discussions on the
>> topic.
>>
>> http://lists.gnu.org/archive/html/bug-bash/2014-03/msg00108.html
> [...]
> 
> Thanks for the links. I still think the comments on the second
> article I sent
> (http://thread.gmane.org/gmane.comp.shells.bash.bugs/24178/focus=24183)
> still hold though and from a quick read I don't see those points
> being mentioned in the past discussions (but that was a quick
> read).
> 
> I notice that you mention the race conditions have been fixed,
> but I'm still seeing some non-deterministic behaviour.

I can't reproduce this on Mac OS X and RHEL 6 and 7, the systems I have
readily available today.

The shell notes when it sees SIGINT and whether or not waitpid returns
-1/EINTR.  If the sleep exits due to SIGINT, even after the waitpid
returns -1, the shell assumes it didn't catch and handle the SIGINT and
the shell calls the trap handler.

-- 
``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/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: SIGINT handling Chet Ramey <chet.ramey@case.edu> - 2015-09-19 21:28 -0400

csiph-web