summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorkurt <kurt@openbsd.org>2012-04-13 13:50:37 +0000
committerkurt <kurt@openbsd.org>2012-04-13 13:50:37 +0000
commit849948d5a9bf1c3e2429fcd2da2b3d5d6ceda459 (patch)
tree64b3b0813a0c1bfccf98b888779ad30777440029 /lib/libc/stdlib
parentPer POSIX, PTHREAD_MUTEX_NORMAL type mutexes have undefined behavior for (diff)
downloadwireguard-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