]> git.lttng.org Git - lttng-ust.git/commitdiff
Fix: reset cached vpid context on fork
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 2 Mar 2018 22:36:25 +0000 (17:36 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 5 Mar 2018 15:41:52 +0000 (10:41 -0500)
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>
liblttng-ust/lttng-ust-comm.c

index 0cf5ecd9687536be5fc7794c4bfeb28ed135a11f..d98fae402d28d9d2504aee517f200291777c9cd4 100644 (file)
@@ -1986,6 +1986,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 */
This page took 0.029218 seconds and 4 git commands to generate.