From: Mathieu Desnoyers Date: Fri, 4 Oct 2019 14:07:03 +0000 (-0400) Subject: Fix: Lock FD tracker across fork X-Git-Tag: v2.12.0-rc1~22 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=c1be081a2f016fb6dcaef1d471389ede3aa00103;hp=c1be081a2f016fb6dcaef1d471389ede3aa00103;p=lttng-ust.git Fix: Lock FD tracker across fork If fork() is performed while other threads are holding the fd tracker lock, it will stay in locked state in the child process and eventually cause a deadlock. One way to solve this is to hold the fd tracker lock across fork(), in the same way we do for the ust_lock. This ensures no other threads are holding that lock in the parent, and therefore provides a consistent lock state in the child. Fixes: #1199 Fixes: #1200 Signed-off-by: Mathieu Desnoyers ---