From: Francis Deslauriers Date: Thu, 1 Mar 2018 22:03:52 +0000 (-0500) Subject: Fix: leftover use of channel fd as identifier X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=69e6428ddd3913a53109847328a754d3cb5ce3af Fix: leftover use of channel fd as identifier Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c index 47833dc8b..709b94509 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -1040,7 +1040,7 @@ int kernel_snapshot_record(struct ltt_kernel_session *ksess, /* For each channel, ask the consumer to snapshot it. */ cds_list_for_each_entry(chan, &ksess->channel_list.head, list) { - ret = consumer_snapshot_channel(socket, chan->fd, output, 0, + ret = consumer_snapshot_channel(socket, chan->key, output, 0, ksess->uid, ksess->gid, DEFAULT_KERNEL_TRACE_DIR, wait, nb_packets_per_stream);