mirror of git://sourceware.org/git/glibc.git
(test_loaded): Prevent recursive calls.
This commit is contained in:
parent
63b11dd19b
commit
400d6c5187
|
|
@ -31,6 +31,10 @@ static void *libpthread_handle;
|
||||||
static void
|
static void
|
||||||
test_loaded (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);
|
void *h = __libc_dlopen_mode ("libpthread.so.0", RTLD_LAZY | RTLD_NOLOAD);
|
||||||
|
|
||||||
libpthread_handle = h ?: (void *) -1l;
|
libpthread_handle = h ?: (void *) -1l;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue