[cr_tests PATCH] robust futex: handle -EINTR snafus

Matt Helsley matthltc at us.ibm.com
Tue Aug 4 16:34:25 PDT 2009


On Tue, Aug 04, 2009 at 01:03:03PM -0500, Serge E. Hallyn wrote:
> [ will apply this patch to cr_tests unless Matt has comments ]
> 
> Freezing the robust futex waiters makes the syscall return with
> -EINTR.  The task then ends up caling futex_wait_restart.  If
> the futex value has already been changed by the parent, then
> the futex_wait_restart will return -EAGAIN.
> 
> If that happens, have the kid create a file called 'TBROK'
> and exit so the parent can reap it.  The run.sh shell is
> rewritten so it will rerun the test if the file TBROK has
> been created.
> 
> (note this has little to do with c/r, but rather with how
> the freezer affects the futex api)

Thanks for making and testing the fix.

Acked-by: Matt Helsley <matthltc at us.ibm.com>

<snip>

Cheers,
	-Matt Helsley


More information about the Containers mailing list