bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] Replacement for the sigs_to_ignore hack in timeout.c


From: Pádraig Brady
Subject: Re: [PATCH] Replacement for the sigs_to_ignore hack in timeout.c
Date: Fri, 10 Oct 2008 02:55:43 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Pádraig Brady wrote:
> Giuseppe Scrivano wrote:
>> Hello,
>>
>> what do you think about the following way to remove the sigs_to_ignore
>> hack in the timeout.c file?
>> It ignores temporarily the signal inside the `send_sig' function instead
>> of using the `sigs_to_ignore' array.
> 
> I'll test this tonight, as this stuff is tricky.

I tested it and couldn't break it,
though I'm worried about this change.

The code it replaces is very simple and explicit.
Whereas I'm worried about the implicit behaviour
of the new code. Specifically I'm worried about
races, where the monitor process may not receive
(and ignore) the signal before the signal handler
is reinstated. I.E. are we always guaranteed that
kill() is synchronous and will not return until
all signals have been delivered to all members of group?

thanks,
Pádraig,




reply via email to

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