On 4/14/14, 4:25 PM, Eduardo A. Bustamante López wrote:
> Hi,
> 
> I was playing with set -m and trapping CHLD in a script, and found
> the following error:

Thanks for the report.  I'll take a look.

> As you can notice, bash 4.3 exits earlier. It should do 5 iterations,
> but instead, it only completes 3. I found that is has something to do
> with using queue_sigchld_trap instead of run_sigchld_trap, which I
> assume fixes another issue, but the fix introduced this error.

It may have something to do with that, but the attached patch is not the
correct one: you can't run arbitrary functions in a signal handler
context.

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

Reply via email to