diff options
author | 2012-02-28 02:41:56 +0000 | |
---|---|---|
committer | 2012-02-28 02:41:56 +0000 | |
commit | 8305f802843f3951651378c6a563dbffda124b9b (patch) | |
tree | e22b58e40d4adcc3640a3924a4c2733ee7667d1c /lib/libc/stdlib/malloc.c | |
parent | test based on python's dubious test_3_join_in_forked_from_thread test. (diff) | |
download | wireguard-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