diff options
author | 2012-04-13 13:50:37 +0000 | |
---|---|---|
committer | 2012-04-13 13:50:37 +0000 | |
commit | 849948d5a9bf1c3e2429fcd2da2b3d5d6ceda459 (patch) | |
tree | 64b3b0813a0c1bfccf98b888779ad30777440029 /lib/libc/stdlib | |
parent | Per POSIX, PTHREAD_MUTEX_NORMAL type mutexes have undefined behavior for (diff) | |
download | wireguard-openbsd-849948d5a9bf1c3e2429fcd2da2b3d5d6ceda459.tar.xz wireguard-openbsd-849948d5a9bf1c3e2429fcd2da2b3d5d6ceda459.zip |
Use PTHREAD_MUTEX_DEFAULT in static init and mutexattr_init. If the
default mutex type changes to NORMAL, when there is an uninitialized
mutex provided to unlock, allow it to succeed similar to an unlocked
mutex. For other cases abort instead of segfault. okay guenther@
Diffstat (limited to 'lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions