From 73850001f047388d242925d14d2493cfa11916fb Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Sat, 27 Feb 2010 11:58:00 -0500 Subject: [PATCH] ust_fork(): prevent deadlock by forcing release of trace_lock after fork in child --- libust/tracectl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libust/tracectl.c b/libust/tracectl.c index c72d013..af0149a 100644 --- a/libust/tracectl.c +++ b/libust/tracectl.c @@ -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 */ -- 2.34.1