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

Alexey Kodanev alexey.kodanev@oracle.com
Fri Oct 20 12:55:31 CEST 2017


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!



More information about the ltp mailing list