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 /include/stdlib.h | |
parent | rename __simple_malloc.c to lite_malloc.c - yes this affects behavior! (diff) | |
download | grovel-a1eb8cb5dab06dd23c256d03d82ef6b0efc4b6c6.tar.gz grovel-a1eb8cb5dab06dd23c256d03d82ef6b0efc4b6c6.tar.xz |
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 'include/stdlib.h')
0 files changed, 0 insertions, 0 deletions