Introduce lttng_ust_loaded weak symbol
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 12 Jul 2016 20:28:45 +0000 (16:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 12 Jul 2016 20:31:00 +0000 (16:31 -0400)
commit07b57e5eb9db5d4219cab7cb3ad61edbc32eb9e5
treeb98bc9735c43ebe7482ebb3dacac6c7e16a7a7df
parent30e43da7276e68767cc901491d899fd360b016f7
Introduce lttng_ust_loaded weak symbol

This variable can be tested by applications to check whether lttng-ust
is loaded. They simply have to define their own "lttng_ust_loaded" weak
symbol, and test it. It is set to 1 by the library constructor.

The main use-case is to allow applications to detect that they should
not try to close file descriptors that do not belong to them (e.g.  BSD
closefrom). This is a common pattern with applications invoking
daemon(3).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust/lttng-ust-comm.c
This page took 0.026179 seconds and 4 git commands to generate.