summaryrefslogtreecommitdiff
path: root/src/unistd/tcsetpgrp.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-30 10:32:45 -0400
committerRich Felker <dalias@aerifal.cx>2011-03-30 10:32:45 -0400
commita1eb8cb5dab06dd23c256d03d82ef6b0efc4b6c6 (patch)
tree460a8ef2e7cfd22d87927bb62b2a214e6eac77db /src/unistd/tcsetpgrp.c
parent620a1346382f9e10b516bc168f86d499b6716769 (diff)
downloadmusl-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/unistd/tcsetpgrp.c')
0 files changed, 0 insertions, 0 deletions