Fix: action executor: double work list unlock on error
[lttng-tools.git] / src / bin / lttng-sessiond / action-executor.c
index e3b387d62d35c33e76c95f2b3745bdfde1e74156..2e6e27a8ce3febcfd0db7cbb100369ff7d974ca4 100644 (file)
@@ -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();
This page took 0.023388 seconds and 4 git commands to generate.