fix regression in pthread_cond_wait with cancellation disabled
authorRich Felker <dalias@aerifal.cx>
Sat, 7 Mar 2015 19:11:01 +0000 (14:11 -0500)
committerRich Felker <dalias@aerifal.cx>
Sat, 7 Mar 2015 19:11:01 +0000 (14:11 -0500)
commita46677af1863f3d050f216a43dfdf4818210c266
treef29c74310778234adafe0f6bb1d5f290d4334faf
parent559de8f5f06da9022cbba70e22e14a710eb74513
fix regression in pthread_cond_wait with cancellation disabled

due to a logic error in the use of masked cancellation mode,
pthread_cond_wait did not honor PTHREAD_CANCEL_DISABLE but instead
failed with ECANCELED when cancellation was pending.
src/thread/pthread_cond_timedwait.c