X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=6e99a7f52d0d24ac1473db3f1c2bf12880a8df78;hb=75d83e506938a3e673ad19bb11838ee88e977e72;hp=a26a41554d2e379c2e97ad4cca20929627571468;hpb=d98a47c754f867bee113325ff69419f0829de0bb;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index a26a41554..6e99a7f52 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -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;