From 400d6c518788aec651a2002709b22c08ddafd7f9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 13 Dec 2002 22:56:32 +0000 Subject: (test_loaded): Prevent recursive calls. --- nptl/forward.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nptl/forward.c') 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; -- cgit v1.2.3