Fix: action executor: double work list unlock on error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 21 Aug 2020 18:16:10 +0000 (14:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 21 Aug 2020 18:16:10 +0000 (14:16 -0400)
commitf5f5c54ddca12e77b50d8b3789de301ed61dbaee
treefc7b0fbc64f0f7456db4fde48b0db3cba7ab4426
parente4d2f27a74baf6942ac8fcafd5ea53e775ceceb3
Fix: action executor: double work list unlock on error

The action executor executes its queued work items without holding the
work list lock. This can result in a double-unlock when a fatal error
occurs during the processing of a work item.

A check for the "should_quit" flag is added before unlocking since this
is the only other reason for the thread to exit its loop.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I8d6b1a3511174abd08848ac3677cdf8a326fa8c5
src/bin/lttng-sessiond/action-executor.c
This page took 0.033517 seconds and 4 git commands to generate.