summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-02-28 02:41:56 +0000
committerguenther <guenther@openbsd.org>2012-02-28 02:41:56 +0000
commit8305f802843f3951651378c6a563dbffda124b9b (patch)
treee22b58e40d4adcc3640a3924a4c2733ee7667d1c /lib/libc/stdlib/malloc.c
parenttest based on python's dubious test_3_join_in_forked_from_thread test. (diff)
downloadwireguard-openbsd-8305f802843f3951651378c6a563dbffda124b9b.tar.xz
wireguard-openbsd-8305f802843f3951651378c6a563dbffda124b9b.zip
Our default mutex type is PTHREAD_MUTEX_ERRORCHECK, for which trying
to unlock an uninitialized mutex is required to return EPERM, so add the necessary checks. For recursive mutexes, return an error from pthread_mutex_lock() if the count would overflow. problem observed in glib testing by aja@
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions