bug-coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] Add timeout utility


From: Pádraig Brady
Subject: Re: [PATCH] Add timeout utility
Date: Wed, 2 Apr 2008 16:09:24 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20071008)

Mike Frysinger wrote:
> On Wednesday 02 April 2008, Pádraig Brady wrote:
>> To be sure, are you referring to races where a signal
>> can be received while in the signal handler on some systems?
>>
>> Also there is the issue of restarting system calls
>> after the signal handler has run.
>>
>> Also there is the issue of resetting the signal
>> handler after it has run.
>>
>> Are there systems that coreutils supports currently
>> that doesn't follow BSD/linux semantics wrt the above 3 points?
> 
> afaik, Linux behaves as POSIX dictates.  that means it does not behave as you 
> describe above.  newer versions of glibc may block the same signal from 
> re-occuring, but it doesnt block other signals.

True, but the current timeout implementation can handle that.
Anyway I'll get rid of the ambiguity using sigaction as you suggest.

cheers,
Pádraig.




reply via email to

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