From: Michael Jeanson Date: Fri, 2 Mar 2018 22:36:25 +0000 (-0500) Subject: Fix: reset cached vpid context on fork X-Git-Tag: v2.11.0-rc1~17 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=06b16a0bab0098e44c4cdffef2e92ed1e5a0abcc;p=lttng-ust.git Fix: reset cached vpid context on fork 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 Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust/lttng-ust-comm.c b/liblttng-ust/lttng-ust-comm.c index 43914465..d4add1c0 100644 --- a/liblttng-ust/lttng-ust-comm.c +++ b/liblttng-ust/lttng-ust-comm.c @@ -2011,6 +2011,7 @@ void ust_after_fork_child(sigset_t *restore_sigset) { if (URCU_TLS(lttng_ust_nest_count)) return; + lttng_context_vpid_reset(); lttng_context_vtid_reset(); DBG("process %d", getpid()); /* Release urcu mutexes */