diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-12-13 22:56:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-12-13 22:56:32 +0000 |
commit | 400d6c518788aec651a2002709b22c08ddafd7f9 (patch) | |
tree | 799a87d97dfdc5bda1df4b991c0bdf046606f295 /nptl/forward.c | |
parent | 63b11dd19b03e5c88f4cd247c2c515e3530e1eb3 (diff) | |
download | glibc-400d6c518788aec651a2002709b22c08ddafd7f9.zip glibc-400d6c518788aec651a2002709b22c08ddafd7f9.tar.gz glibc-400d6c518788aec651a2002709b22c08ddafd7f9.tar.bz2 |
(test_loaded): Prevent recursive calls.
Diffstat (limited to 'nptl/forward.c')
-rw-r--r-- | nptl/forward.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/forward.c b/nptl/forward.c index 491e0ca..441a7f2 100644 --- a/nptl/forward.c +++ b/nptl/forward.c @@ -31,6 +31,10 @@ static void *libpthread_handle; static void test_loaded (void) { + /* While we are getting the result set the handle to (void *) -1 to + avoid recursive calls. */ + libpthread_handle = (void *) -1l; + void *h = __libc_dlopen_mode ("libpthread.so.0", RTLD_LAZY | RTLD_NOLOAD); libpthread_handle = h ?: (void *) -1l; |