mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
(test_loaded): Prevent recursive calls.
This commit is contained in:
parent
63b11dd19b
commit
400d6c5187
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user