correctly handle old kernels without FUTEX_WAIT_BITSET
authorRich Felker <dalias@aerifal.cx>
Wed, 3 Aug 2011 01:18:43 +0000 (21:18 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 3 Aug 2011 01:18:43 +0000 (21:18 -0400)
commit4717bfec708d264111f70f37850ffc09238c4bd5
tree25c24672e32621ae50ac5e569031f37c4b8c7cb0
parentbdd893377fe65519fae90948cd8f3c635757eaba
correctly handle old kernels without FUTEX_WAIT_BITSET

futex returns EINVAL, not ENOSYS, when op is not supported.
unfortunately this looks just like EINVAL from other causes, and we
end up running the fallback code and getting EINVAL again. fortunately
this case should be rare since correct code should not generate EINVAL
anyway.
src/thread/__timedwait.c