Fix: leftover use of channel fd as identifier
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 1 Mar 2018 22:03:52 +0000 (17:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 5 Mar 2018 19:52:11 +0000 (14:52 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/kernel.c

index 35758e3bd02f252eaa90daa9719c7866a0f2b53f..158a12a3633fa54100c81d0f5179b6c2c9d9c68e 100644 (file)
@@ -1039,7 +1039,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);
This page took 0.025882 seconds and 4 git commands to generate.