ust_fork(): prevent deadlock by forcing release of trace_lock after fork in child
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Sat, 27 Feb 2010 16:58:00 +0000 (11:58 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Sat, 27 Feb 2010 16:58:00 +0000 (11:58 -0500)
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.025225 seconds and 4 git commands to generate.