bug-bash
[Top][All Lists]
Advanced

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

Re: Executing shell code on the signal stack, or why is this is a bad id


From: Chet Ramey
Subject: Re: Executing shell code on the signal stack, or why is this is a bad idea
Date: Fri, 07 Jun 2013 16:50:32 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

On 6/6/13 5:29 AM, Lionel Cons wrote:
> Forwarding an interesting posting from Roland Mainz who did an
> investigation why signal trap processing in ksh93, bash and dash is
> currently not reliable.

As I said in a previous message, I have done considerable work between
bash-4.2 and bash-4.3 to move signal processing out of signal handlers.
This includes running trap commands.

The only signal for which bash (and other shells) make a guarantee to
execute one instance of a trap for each signal received is SICHLD, and
even in that case the guarantee is not exact: the shell will run the
trap once for each child that exits.

Read the thread beginning at

http://lists.gnu.org/archive/html/bug-bash/2012-11/msg00003.html

for a discussion that kicked off some of the work.

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/



reply via email to

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