Merge "Log errors from loading public libraries" am: 6b74258818
am: 1508020656
Change-Id: I0c646bd55d21e5caf2fd6278de42ab177dca117c
This commit is contained in:
commit
d6fc63c8ef
1 changed files with 3 additions and 1 deletions
|
|
@ -246,7 +246,9 @@ class LibraryNamespaces {
|
|||
// For now we rely on CTS test to catch things like this but
|
||||
// it should probably be addressed in the future.
|
||||
for (const auto& soname : sonames) {
|
||||
dlopen(soname.c_str(), RTLD_NOW | RTLD_NODELETE);
|
||||
LOG_ALWAYS_FATAL_IF(dlopen(soname.c_str(), RTLD_NOW | RTLD_NODELETE) == nullptr,
|
||||
"Error preloading public library %s: %s",
|
||||
soname.c_str(), dlerror());
|
||||
}
|
||||
|
||||
public_libraries_ = base::Join(sonames, ':');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue