We currently reset the cached vtid on fork but not the vpid. This is not
a problem on Linux because we don't cache the vpid internally but call
getpid() directly and rely on the glibc pid cache.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
{
if (URCU_TLS(lttng_ust_nest_count))
return;
{
if (URCU_TLS(lttng_ust_nest_count))
return;
+ lttng_context_vpid_reset();
lttng_context_vtid_reset();
DBG("process %d", getpid());
/* Release urcu mutexes */
lttng_context_vtid_reset();
DBG("process %d", getpid());
/* Release urcu mutexes */