Fix: add missing metadata socket lock
[lttng-tools.git] / src / common / consumer.c
index a26a41554d2e379c2e97ad4cca20929627571468..6e99a7f52d0d24ac1473db3f1c2bf12880a8df78 100644 (file)
@@ -1153,6 +1153,7 @@ struct lttng_consumer_local_data *lttng_consumer_create(
 
        ctx->consumer_error_socket = -1;
        ctx->consumer_metadata_socket = -1;
+       pthread_mutex_init(&ctx->metadata_socket_lock, NULL);
        /* assign the callbacks */
        ctx->on_buffer_ready = buffer_ready;
        ctx->on_recv_channel = recv_channel;
This page took 0.023185 seconds and 4 git commands to generate.