X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconsumer.c;h=b5fe9831640217455c40c11b9e85e36b470ec05c;hb=f21dae485bbd4a21104eff49a80b59ce25054bc2;hp=990db9e2690eff92ec683b8dd1df1aef65542ab0;hpb=4c95e622041958250db73b497097ed93f7715e20;p=lttng-tools.git diff --git a/src/common/consumer.c b/src/common/consumer.c index 990db9e26..b5fe98316 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -102,6 +102,7 @@ static void notify_channel_pipe(struct lttng_consumer_local_data *ctx, msg.action = action; msg.chan = chan; + msg.key = key; do { ret = write(ctx->consumer_channel_pipe[1], &msg, sizeof(msg)); } while (ret < 0 && errno == EINTR); @@ -906,7 +907,7 @@ int consumer_add_channel(struct lttng_consumer_channel *channel, /* Channel already exist. Ignore the insertion */ ERR("Consumer add channel key %" PRIu64 " already exists!", channel->key); - ret = -1; + ret = LTTNG_ERR_KERN_CHAN_EXIST; goto end; }