[LTP] [PATCH] clone08: don't treat EWOULDBLOCK as failure

Jan Stancek jstancek@redhat.com
Thu Oct 26 09:42:43 CEST 2017


----- Original Message -----
> On 10/20/2017 11:32 AM, Jan Stancek wrote:
> > futex() and clone() are racing in test_clone_thread().
> > If clone() changes ctid first, then futex() reports
> > EWOULDBLOCK and test treats that as failure.
> >
> > We don't need to eliminate the race, since all we
> > care about is that ctid is changed/cleared by clone().
> >
> > Also fix a small warning from unused variable.
> >
> > Signed-off-by: Jan Stancek <jstancek@redhat.com>
> > ---
> >  testcases/kernel/syscalls/clone/clone08.c | 25 +++++++++++++++++--------
> >  1 file changed, 17 insertions(+), 8 deletions(-)
> 
> Looks good to me, thanks!
> 

Pushed.

Regards,
Jan


More information about the ltp mailing list