diff options
author | Rich Felker <dalias@aerifal.cx> | 2020-05-22 17:35:14 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-05-22 17:39:57 -0400 |
commit | 4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4 (patch) | |
tree | 8eb6e667cd532a4a01e5cf4045dc71d11943b4ad /src/complex/cexp.c | |
parent | cabc36969bce739e86ecac250d286b0bda6aa88e (diff) | |
download | musl-4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4.tar.gz musl-4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4.tar.bz2 musl-4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4.tar.xz musl-4d5aa20a94a2d3fae3e69289dc23ecafbd0c16c4.zip |
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/complex/cexp.c')
0 files changed, 0 insertions, 0 deletions