X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Faction-executor.c;h=2e6e27a8ce3febcfd0db7cbb100369ff7d974ca4;hp=e3b387d62d35c33e76c95f2b3745bdfde1e74156;hb=f5f5c54ddca12e77b50d8b3789de301ed61dbaee;hpb=e4d2f27a74baf6942ac8fcafd5ea53e775ceceb3 diff --git a/src/bin/lttng-sessiond/action-executor.c b/src/bin/lttng-sessiond/action-executor.c index e3b387d62..2e6e27a8c 100644 --- a/src/bin/lttng-sessiond/action-executor.c +++ b/src/bin/lttng-sessiond/action-executor.c @@ -563,7 +563,9 @@ static void *action_executor_thread(void *_data) pthread_mutex_lock(&executor->work.lock); } - pthread_mutex_unlock(&executor->work.lock); + if (executor->should_quit) { + pthread_mutex_unlock(&executor->work.lock); + } DBG("Left work execution loop"); health_code_update();