diff options
Diffstat (limited to 'dlfcn/dlclose.c')
-rw-r--r-- | dlfcn/dlclose.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dlfcn/dlclose.c b/dlfcn/dlclose.c index 9fb5090723..6afe6c8af2 100644 --- a/dlfcn/dlclose.c +++ b/dlfcn/dlclose.c @@ -1,5 +1,5 @@ /* Close a handle opened by `dlopen'. - Copyright (C) 1995-2016 Free Software Foundation, Inc. + Copyright (C) 1995-2018 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -39,7 +39,7 @@ int __dlclose (void *handle) { # ifdef SHARED - if (__glibc_unlikely (_dlfcn_hook != NULL)) + if (!rtld_active ()) return _dlfcn_hook->dlclose (handle); # endif |