Fix: duplicated kernel consumer socket locking
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 16 Feb 2018 19:48:49 +0000 (14:48 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 16 Feb 2018 21:18:38 +0000 (16:18 -0500)
commit649c4198dc4c9349bf88109b7f442382b426d1cc
tree44dae14c16a23cd7f8fc47bc1aac5e7bfa37c705
parentcb9dc8472ec2b14da6ca1004ec5cc1ad84b00f61
Fix: duplicated kernel consumer socket locking

Commit 9d1103e introduced a bug causing a deadlock on snapshot record.
Function consumer_snapshot_channel is called with the lock held causing
the pthread_mutex_lock call inside to hang forever.

Because consumer_snapshot_channel now acquires the lock before using the
socket. No need to acquire the lock before calling the function.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/kernel.c
This page took 0.026936 seconds and 4 git commands to generate.