Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92921409 authored by Dimitry Ivanov's avatar Dimitry Ivanov Committed by android-build-merger
Browse files

Merge "Log errors from loading public libraries" am: 6b742588 am: 15080206

am: d6fc63c8

Change-Id: I43b87946ed091d14f1353a311f7b38ded5db6790
parents 94f80839 d6fc63c8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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, ':');