This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: Can you undo change in sig_dispatch_pending() ?
On Wed, 31 Oct 2007, Christopher Faylor wrote:
> If the intent of the test is to deal with signals that are pending and a
> signal is pending but not yet in the linked list that would indicate
> that there is a race.
I think I see your point now. I will go analyze the cases and report back
when I have a clear understanding of this part of the issue. Thank you
for the explanation.
> If the sigq.next test can't do a perfect job then it would sort of stand
> to reason that the test may not actually be necessary at all.
>
> I mean how many times
>
> if (!sigq.next)
> return;
>
> /* this code */
>
> is executed.
That may be interesting, but a full analysis is probably needed rather
than relying on statistics ;-). I hope to elaborate the conditions so we
can all understand. Thanks again.
--
Brian Ford
Lead Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...