fix pthread_detach inadvertently acting as cancellation point in race case
authorRich Felker <dalias@aerifal.cx>
Sat, 11 Feb 2023 14:54:12 +0000 (09:54 -0500)
committerRich Felker <dalias@aerifal.cx>
Sat, 11 Feb 2023 18:00:22 +0000 (13:00 -0500)
disabling cancellation around the pthread_join call seems to be the
safest and logically simplest fix. i believe it would also be possible
to just perform the unmap directly here after __tl_sync, removing the
dependency on pthread_join, but such an approach duplicately encodes a
lot more implementation assumptions.


No differences found