bug-bash
[Top][All Lists]
Advanced

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

Re: Possible bug: Race condition when calling external commands during t


From: Roman Rakus
Subject: Re: Possible bug: Race condition when calling external commands during trap handling
Date: Tue, 22 May 2012 14:41:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 05/22/2012 02:28 PM, Greg Wooledge wrote:
I do not know the answers to "How does bash implement traps?  Is there
a guarantee that no signals will be lost?"  Hopefully someone else does.
I can just imagine a situation when the bash is reading trap from the source (is going through the script and is on line where trap is) or not read it yet and the signal is received. Then, of course, your trap handler is not installed yet. Another situation: You had previous trap handler and you are installing new one. The received signals are "paused" for a while and are processed right after the installation of new trap handler. There was a bug report against this, I'm not sure if it is fixed.

RR



reply via email to

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