consumer handling fix: send metadata channel shm size
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 3 Nov 2011 19:18:04 +0000 (15:18 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 3 Nov 2011 19:18:04 +0000 (15:18 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-sessiond/ust-consumer.c

index 9a4c47d839a60d14d78df5f599f55bf4936c6310..1e583839e4292c2befce109f7549dc76b5d51593 100644 (file)
@@ -134,7 +134,7 @@ int ust_consumer_send_session(int consumer_fd, struct ust_app_session *usess)
                lum.cmd_type = LTTNG_CONSUMER_ADD_CHANNEL;
                lum.u.channel.channel_key = usess->metadata->obj->shm_fd;
                lum.u.channel.max_sb_size = usess->metadata->attr.subbuf_size;
-               lum.u.channel.mmap_len = 0;     /* for kernel */
+               lum.u.channel.mmap_len = usess->metadata->obj->memory_map_size;
                DBG("Sending metadata channel %d to consumer", lum.u.channel.channel_key);
                ret = lttcomm_send_unix_sock(sock, &lum, sizeof(lum));
                if (ret < 0) {
This page took 0.025755 seconds and 4 git commands to generate.