projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: add missing metadata socket lock
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.c
diff --git
a/src/common/ust-consumer/ust-consumer.c
b/src/common/ust-consumer/ust-consumer.c
index 6b47ec0c9b2739cb04b07808a03890eee065e2fa..986826fca267c455ba9825ea288edbff2e1ca8f4 100644
(file)
--- a/
src/common/ust-consumer/ust-consumer.c
+++ b/
src/common/ust-consumer/ust-consumer.c
@@
-1890,6
+1890,7
@@
int lttng_ustconsumer_request_metadata(struct lttng_consumer_local_data *ctx,
channel->session_id,
channel->session_id_per_pid);
channel->session_id,
channel->session_id_per_pid);
+ pthread_mutex_lock(&ctx->metadata_socket_lock);
ret = lttcomm_send_unix_sock(ctx->consumer_metadata_socket, &request,
sizeof(request));
if (ret < 0) {
ret = lttcomm_send_unix_sock(ctx->consumer_metadata_socket, &request,
sizeof(request));
if (ret < 0) {
@@
-1955,5
+1956,6
@@
int lttng_ustconsumer_request_metadata(struct lttng_consumer_local_data *ctx,
ret = 0;
end:
ret = 0;
end:
+ pthread_mutex_unlock(&ctx->metadata_socket_lock);
return ret;
}
return ret;
}
This page took
0.025058 seconds
and
5
git commands to generate.