Reset vtid after fork in child
[lttng-ust.git] / libust / lttng-ust-comm.c
index 6bf9e2b5b350ebb2936507a054a1236c578f9b7c..7971168c638b2d14fdf0864ec3bb6a0b35ec840e 100644 (file)
@@ -39,6 +39,7 @@
 #include <urcu/futex.h>
 
 #include <lttng-ust-comm.h>
+#include <ust/lttng-events.h>
 #include <ust/usterr-signal-safe.h>
 #include <ust/lttng-ust-abi.h>
 #include <ust/tracepoint.h>
@@ -924,6 +925,7 @@ void ust_after_fork_child(ust_fork_info_t *fork_info)
        /* Release urcu mutexes */
        rcu_bp_after_fork_child();
        lttng_ust_cleanup(0);
+       lttng_context_vtid_reset();
        /* Release mutexes and reenable signals */
        ust_after_fork_common(fork_info);
        lttng_ust_init();
This page took 0.02327 seconds and 4 git commands to generate.