ust_fork(): prevent deadlock by forcing release of trace_lock after fork in child
[ust.git] / libust / tracectl.c
index c72d013d7535a5539960e4d111ad24b39bcc6e54..af0149a5cb82a9d41c59c253ff6343a5d7f2d028 100644 (file)
@@ -1455,6 +1455,10 @@ static void ust_fork(void)
 
        /* FIXME: technically, the locks could have been taken before the fork */
        DBG("ust: forking");
+
+       /* break lock if necessary */
+       ltt_unlock_traces();
+
        ltt_trace_stop("auto");
        ltt_trace_destroy("auto", 1);
        /* Delete all active connections */
This page took 0.023278 seconds and 4 git commands to generate.