On 01/20/2014 08:09 PM, chru...@suse.cz wrote:
> Hi!
>> I came accross the following rare issue:
>>
>> setpgid03    1  TPASS  :  setpgid SUCCESS to set errno to EPERM
>> setpgid03    2  TFAIL  :  setpgid FAILED, expect EACCES got 1
>>
>> I suppose it may happen if the test host is under stress.
>>
>> To prevent this it would be better to use tst_checkpoint interface
>> for parent-child synchronisations.
>
> Pushed.
>
> I've added a follow up patch that removes the alarm() timeout code in
> the child and does a few more fixes.

Thank you.

>
> The timeout should better be handled, if handled at all, in the
> checkpoint code. I would not care much about this case because when the
> parent is dead does not talk to the child the test will fail anyway...
>

I didn't care about the test failure in such case. I cared about that 
without alarm() the child will keep running (i.e. blocking on IO) even 
after the parent is dead.

But I agree that it's not the best place to handle this inside the test 
case.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to