about summary refs log tree commit diff
path: root/nptl/forward.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-13 22:56:32 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-13 22:56:32 +0000
commit400d6c518788aec651a2002709b22c08ddafd7f9 (patch)
tree799a87d97dfdc5bda1df4b991c0bdf046606f295 /nptl/forward.c
parent63b11dd19b03e5c88f4cd247c2c515e3530e1eb3 (diff)
downloadglibc-400d6c518788aec651a2002709b22c08ddafd7f9.tar.gz
glibc-400d6c518788aec651a2002709b22c08ddafd7f9.tar.xz
glibc-400d6c518788aec651a2002709b22c08ddafd7f9.zip
(test_loaded): Prevent recursive calls.
Diffstat (limited to 'nptl/forward.c')
-rw-r--r--nptl/forward.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/forward.c b/nptl/forward.c
index 491e0caed8..441a7f25ea 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;