|
From: | Roman Rakus |
Subject: | Re: bash trap ignore signal - race condition |
Date: | Fri, 15 Apr 2011 14:58:26 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 |
On 04/14/2011 03:09 PM, Chet Ramey wrote:
I'm not sure I understand this. Why is using a temporary handler better than blocking the signal until the trap handler is in place, then unblocking it and allowing any pending signal to be delivered?I just want some way to not ignore the signal. For example handle the signal after initialization of trap even if the signal is delivered during this initialization.I don't think you are understanding what I'm proposing. Blocking the signal with sigprocmask(SIG_BLOCK, ...) does the right thing.
I didn't understand, but now I do. Thanks for clarification and sorry... RR
[Prev in Thread] | Current Thread | [Next in Thread] |