[Top][All Lists]

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

Re: bash trap ignore signal - race condition

From: Chet Ramey
Subject: Re: bash trap ignore signal - race condition
Date: Thu, 14 Apr 2011 09:09:08 -0400

> > 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.

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

reply via email to

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