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:17:00 +0000 (16:17 -0500)
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>

No differences found
This page took 0.024933 seconds and 4 git commands to generate.