Fix: perform lazy initialization of getenv common lib
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Apr 2021 21:24:50 +0000 (17:24 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Apr 2021 21:24:50 +0000 (17:24 -0400)
commit407937dc27362ba6f169a7b2a01e41f4ab6ede82
tree0283265b99f8a0a7ef72c5c45dbc368b8cae43e6
parent1c6960cd7db149e8d112cca04339abf00c283fac
Fix: perform lazy initialization of getenv common lib

The ust-dl wrapper ends up calling into the getenv common lib very early
from library constructors through use of dlopen by the tracepoint
instrumentation code.

This happens before the getenv common lib is explicitly initialized by
liblttng-ust's contructor.

Perform lazy initialization for those early use by constructor
scenarios.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I9f84bb776a62e03b11db0386e267df00eb165ddd
src/common/getenv.c
This page took 0.024575 seconds and 4 git commands to generate.