Change consumer_metadata_pipe to be a lttng_pipe
[lttng-tools.git] / src / common / kernel-consumer / kernel-consumer.c
index 2cf9ac1a894bfe7d35f31b038fa44e3343ce8e4a..f23fc9c5711f18101e1b7b3fb6cd7245ea378cee 100644 (file)
@@ -34,6 +34,7 @@
 #include <common/sessiond-comm/sessiond-comm.h>
 #include <common/sessiond-comm/relayd.h>
 #include <common/compat/fcntl.h>
+#include <common/pipe.h>
 #include <common/relayd/relayd.h>
 #include <common/utils.h>
 
@@ -287,9 +288,9 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
 
                /* Get the right pipe where the stream will be sent. */
                if (new_stream->metadata_flag) {
-                       stream_pipe = ctx->consumer_metadata_pipe[1];
+                       stream_pipe = lttng_pipe_get_writefd(ctx->consumer_metadata_pipe);
                } else {
-                       stream_pipe = ctx->consumer_data_pipe[1];
+                       stream_pipe = lttng_pipe_get_writefd(ctx->consumer_data_pipe);
                }
 
                do {
This page took 0.02596 seconds and 5 git commands to generate.