summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020-05-22 17:35:14 -0400
committerRich Felker <dalias@aerifal.cx>2020-05-22 17:39:57 -0400
commit4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4 (patch)
tree8eb6e667cd532a4a01e5cf4045dc71d11943b4ad /src/internal
parentcabc36969bce739e86ecac250d286b0bda6aa88e (diff)
downloadmusl-4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4.tar.gz
reorder thread list unlink in pthread_exit after all locks
since the backend for LOCK() skips locking if single-threaded, it's unsafe to make the process appear single-threaded before the last use of lock. this fixes potential unsynchronized access to a linked list via __dl_thread_cleanup.
Diffstat (limited to 'src/internal')
0 files changed, 0 insertions, 0 deletions