* This points to the tracing session list containing the session count and a
* mutex lock. The lock MUST be taken if you iterate over the list. The lock
* MUST NOT be taken if you call a public function in session.c.
+ *
+ * The lock is nested inside the structure: session_list_ptr->lock.
*/
static struct ltt_session_list *session_list_ptr;
pthread_mutex_lock(&kconsumerd_pid_mutex);
if (kconsumerd_pid != 0) {
+ pthread_mutex_unlock(&kconsumerd_pid_mutex);
goto end;
}
}
end:
- pthread_mutex_unlock(&kconsumerd_pid_mutex);
return 0;
error: