X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=6e99a7f52d0d24ac1473db3f1c2bf12880a8df78;hb=ace17efaf90b672f303b22959146c01793e9d4b2;hp=a26a41554d2e379c2e97ad4cca20929627571468;hpb=04ef1097c8f54a151c899c1773ac56907c97694d;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;