Skip to content
Snippets Groups Projects
Commit 1d801f52 authored by Pascal Muetschard's avatar Pascal Muetschard
Browse files

Ensure gpu_counter_producer can always find the driver's .so.

Test: tested locally
Change-Id: I4971e1b422bf4b278e8c3153e2134956c8d35700
parent 22daeee1
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,12 @@ int main(int argc, char** argv) {
daemon(0, 0);
}
if (getenv("LD_LIBRARY_PATH") == nullptr) {
setenv("LD_LIBRARY_PATH", "/vendor/lib64:/vendor/lib", 0 /*override*/);
LOG_INFO("execv with: LD_LIBRARY_PATH=%s", getenv("LD_LIBRARY_PATH"));
execvpe(pname, argv, environ);
}
if (!writeToPidFile()) {
LOG_ERR("Could not open %s", kPidFileName);
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment