From: David Goulet Date: Fri, 5 Jul 2013 19:39:21 +0000 (-0400) Subject: Fix: set globally visible flag to kernel stream X-Git-Tag: v2.3.0-rc1~60 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d9904f8450af54cb6a533db612a7181e933f5aef;p=lttng-tools.git Fix: set globally visible flag to kernel stream Signed-off-by: David Goulet --- diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c index 5c0dce45d..42af65ac3 100644 --- a/src/common/kernel-consumer/kernel-consumer.c +++ b/src/common/kernel-consumer/kernel-consumer.c @@ -656,6 +656,8 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx, consumer_stream_free(new_stream); goto end_nosignal; } + /* Successfully sent to the right thread. */ + new_stream->globally_visible = 1; DBG("Kernel consumer ADD_STREAM %s (fd: %d) with relayd id %" PRIu64, new_stream->name, fd, new_stream->relayd_stream_id);