make non-waiting paths of sem_[timed]wait and pthread_join cancelable
authorRich Felker <dalias@aerifal.cx>
Fri, 5 Sep 2014 07:22:52 +0000 (03:22 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 5 Sep 2014 07:22:52 +0000 (03:22 -0400)
commitfff546930347d99729f1c0a9d911e7f24a094531
tree59c0bf452ec99eff7f8cc1d477999633af28705f
parent80e6485455a9c75c029d0e976d2dd9c8e441dd72
make non-waiting paths of sem_[timed]wait and pthread_join cancelable

per POSIX these functions are both cancellation points, so they must
act on any cancellation request which is pending prior to the call.
previously, only the code path where actual waiting took place could
act on cancellation.
src/thread/pthread_join.c
src/thread/sem_timedwait.c