projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
consumer relayd interaction: fix segfaults
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index c47c0ff08239f9c80ccb9a8fae286034def197fc..0e9c52e835dc594d2fa773452045208a26ea3cac 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-720,6
+720,8
@@
struct consumer_relayd_sock_pair *consumer_allocate_relayd_sock_pair(
obj->net_seq_idx = net_seq_idx;
obj->refcount = 0;
obj->destroy_flag = 0;
obj->net_seq_idx = net_seq_idx;
obj->refcount = 0;
obj->destroy_flag = 0;
+ obj->control_sock.sock.fd = -1;
+ obj->data_sock.sock.fd = -1;
lttng_ht_node_init_u64(&obj->node, obj->net_seq_idx);
pthread_mutex_init(&obj->ctrl_sock_mutex, NULL);
lttng_ht_node_init_u64(&obj->node, obj->net_seq_idx);
pthread_mutex_init(&obj->ctrl_sock_mutex, NULL);
This page took
0.026597 seconds
and
4
git commands to generate.