[PATCH] libthread_xu: fix problem with umtx errno override
Simon Schubert found a bug today which causes an undesired value in
errno in a threaded context if a umtx syscall also returns an error.
This is the new fix:
#1 Updated by alexh almost 8 years ago
Attached is a test case. Before the fix, when using an argument of 100 or so and
trying a few times, one will see one or more "thread tester error: Device busy".
This Device Busy comes from umtx and not readdir.
After applying the patch that error doesn't occur anymore.