diff options
Diffstat (limited to 'nptl')
-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 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; |