(test_loaded): Prevent recursive calls.
authorUlrich Drepper <drepper@redhat.com>
Fri, 13 Dec 2002 22:56:32 +0000 (22:56 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 13 Dec 2002 22:56:32 +0000 (22:56 +0000)
nptl/forward.c

index 491e0ca..441a7f2 100644 (file)
@@ -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;