From: Pierre-Marc Fournier Date: Sat, 27 Feb 2010 16:58:00 +0000 (-0500) Subject: ust_fork(): prevent deadlock by forcing release of trace_lock after fork in child X-Git-Tag: v0.3~16 X-Git-Url: https://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=73850001f047388d242925d14d2493cfa11916fb ust_fork(): prevent deadlock by forcing release of trace_lock after fork in child --- 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 */