[llvm-commits] [patch] Used TimedExec.sh everywhere

Török Edwin edwintorok at gmail.com
Fri Jan 15 07:59:53 PST 2010


On 2010-01-15 17:53, Rafael Espindola wrote:
>> No, because 0 is not a signal name ;)
>>
>> Should be something like this (haven't tested though):
>>
>> -        kill -s INFO $PARENT 2>/dev/null
>> +        kill -0 $PARENT 2>/dev/null
>>
>> I am using kill -0 in other scripts though, and it works fine.
>>     
>
> Sure. So, is it ok?
>
>   

Yes.

> I tested kill -0 on linux and it does return 0 if the process exists
> and 1 if it doesn't which is all that we need.
>   

Yes, I just double-checked and it also works on Solaris.

Best regards,
--Edwin



More information about the llvm-commits mailing list