X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=e26388f8e50fab81d5df0999ab5fb73948e8faba;hb=b31398bb2b3fa91a53dea3b36fd693da4b50e0d3;hp=01266a700cb37199966c9257eba335689e877453;hpb=a6976990852205663a818aed8490d59a135dfc44;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 01266a700..e26388f8e 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -99,6 +99,8 @@ static void notify_channel_pipe(struct lttng_consumer_local_data *ctx, struct consumer_channel_msg msg; int ret; + memset(&msg, 0, sizeof(msg)); + msg.action = action; msg.chan = chan; do { @@ -658,9 +660,6 @@ static int add_stream(struct lttng_consumer_stream *stream, uatomic_inc(&relayd->refcount); } - /* Update channel refcount once added without error(s). */ - uatomic_inc(&stream->chan->refcount); - /* * When nb_init_stream_left reaches 0, we don't need to trigger any action * in terms of destroying the associated channel, because the action that