diff options
author | jasone <jasone@FreeBSD.org> | 2007-11-27 03:16:44 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2007-11-27 03:16:44 +0000 |
commit | 21bb948195adb6636c33738cab39bb89cac41bc7 (patch) | |
tree | bc0c2019e6f4f8b5aa0d67d7e3517c626797bb0e /lib/libkse/thread/thr_rtld.c | |
parent | 2dd595aefe6b80476344fe4fc8b7934db055aaa2 (diff) | |
download | FreeBSD-src-21bb948195adb6636c33738cab39bb89cac41bc7.zip FreeBSD-src-21bb948195adb6636c33738cab39bb89cac41bc7.tar.gz |
Add _pthread_mutex_init_calloc_cb() to libthr and libkse, so that malloc(3)
(part of libc) can use pthreads mutexes without causing infinite recursion
during initialization.
Diffstat (limited to 'lib/libkse/thread/thr_rtld.c')
-rw-r--r-- | lib/libkse/thread/thr_rtld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkse/thread/thr_rtld.c b/lib/libkse/thread/thr_rtld.c index e813073..acb92a3 100644 --- a/lib/libkse/thread/thr_rtld.c +++ b/lib/libkse/thread/thr_rtld.c @@ -162,7 +162,7 @@ _thr_rtld_lock_create(void) if ((l = malloc(sizeof(struct rtld_kse_lock))) != NULL) { _lock_init(&l->lck, LCK_ADAPTIVE, _kse_lock_wait, - _kse_lock_wakeup); + _kse_lock_wakeup, calloc); l->owner = NULL; l->count = 0; l->write = 0; |