diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-30 10:32:45 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-30 10:32:45 -0400 |
commit | a1eb8cb5dab06dd23c256d03d82ef6b0efc4b6c6 (patch) | |
tree | 460a8ef2e7cfd22d87927bb62b2a214e6eac77db /src/time/clock.c | |
parent | 620a1346382f9e10b516bc168f86d499b6716769 (diff) | |
download | musl-a1eb8cb5dab06dd23c256d03d82ef6b0efc4b6c6.tar.gz |
avoid crash on stupid but allowable usage of pthread_mutex_unlock
unlocking an unlocked mutex is not UB for robust or error-checking
mutexes, so we must avoid calling __pthread_self (which might crash
due to lack of thread-register initialization) until after checking
that the mutex is locked.
Diffstat (limited to 'src/time/clock.c')
0 files changed, 0 insertions, 0 deletions