diff options
| author | David Xu <davidxu@FreeBSD.org> | 2008-10-31 09:09:22 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2008-10-31 09:09:22 +0000 |
| commit | 5599f96ea033a753d967531311ac5bdfaaba96d8 (patch) | |
| tree | 9304bc4c5d549383766957bbe9016c28fbc32caf /libexec | |
| parent | 0ba3b67d31cf219e2d1d434feb835cf337befcdd (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rtld-elf/rtld_lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rtld-elf/rtld_lock.c b/libexec/rtld-elf/rtld_lock.c index c67f5fb0d545..5bb891a2ae82 100644 --- a/libexec/rtld-elf/rtld_lock.c +++ b/libexec/rtld-elf/rtld_lock.c @@ -184,7 +184,7 @@ rtld_lock_t rtld_phdr_lock = &rtld_locks[2]; int rlock_acquire(rtld_lock_t lock) { - if (thread_mask_set(lock->mask)) { + if (thread_mask_set(lock->mask) & lock->mask) { dbg("rlock_acquire: recursed"); return (0); } @@ -195,7 +195,7 @@ rlock_acquire(rtld_lock_t lock) int wlock_acquire(rtld_lock_t lock) { - if (thread_mask_set(lock->mask)) { + if (thread_mask_set(lock->mask) & lock->mask) { dbg("wlock_acquire: recursed"); return (0); } |
