mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Use RTLD_GLOBAL when loading shared libraries.
This commit is contained in:
parent
e67ed94b3e
commit
0b431b8a17
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.07 -
|
Version 2.02.07 -
|
||||||
=================================
|
=================================
|
||||||
|
Use RTLD_GLOBAL when loading shared libraries.
|
||||||
Add some forgotten memlock checks to _vg_read to protect against full scans.
|
Add some forgotten memlock checks to _vg_read to protect against full scans.
|
||||||
Add mutex to dmeventd_mirror to avoid concurrent execution.
|
Add mutex to dmeventd_mirror to avoid concurrent execution.
|
||||||
Fix vgreduce --removemissing to return success if VG is already consistent.
|
Fix vgreduce --removemissing to return success if VG is already consistent.
|
||||||
|
@ -47,13 +47,13 @@ void *load_shared_library(struct cmd_context *cmd, const char *libname,
|
|||||||
|
|
||||||
log_very_verbose("Opening shared %s library %s", desc, path);
|
log_very_verbose("Opening shared %s library %s", desc, path);
|
||||||
|
|
||||||
if (!(library = dlopen(path, RTLD_LAZY))) {
|
if (!(library = dlopen(path, RTLD_LAZY | RTLD_GLOBAL))) {
|
||||||
if (silent && ignorelockingfailure())
|
if (silent && ignorelockingfailure())
|
||||||
log_verbose("Unable to open external %s library %s",
|
log_verbose("Unable to open external %s library %s",
|
||||||
desc, path);
|
desc, path);
|
||||||
else
|
else
|
||||||
log_error("Unable to open external %s library %s",
|
log_error("Unable to open external %s library %s: %s",
|
||||||
desc, path);
|
desc, path, dlerror());
|
||||||
}
|
}
|
||||||
|
|
||||||
return library;
|
return library;
|
||||||
|
Loading…
Reference in New Issue
Block a user