[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Racing condition leads to unstable exit code
From: |
Chet Ramey |
Subject: |
Re: Racing condition leads to unstable exit code |
Date: |
Thu, 29 Sep 2016 15:39:25 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 9/23/16 3:04 PM, Luiz Angelo Daros de Luca wrote:
> Hello,
>
> I'm using 'GNU bash, version 4.3.46(1)-release (x86_64-suse-linux-gnu)'
> provided by OpenSUSE Tumbleweed. I recently faced a problem that, depending
> on the system load, bash returns different exit codes. I detected that it
> is related to trap processing.
Thanks for the report. It is related (indirectly) to trap processing in
that traps get processed while reading the command substitution output.
The problem still exists in bash-4.4, and I will probably release a
bash-4.4 patch to address it. There are a few things ahead of that in
the queue, though.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/