From 784303b0777959c71c7f6ad404fea1ed3cc22f14 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 9 Nov 2012 13:52:39 -0500 Subject: [PATCH] Fix: Wrong fd used by kernel_wait_quiescent Signed-off-by: David Goulet --- src/bin/lttng-sessiond/cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 386b99ae2..37a803b05 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -736,7 +736,7 @@ static int start_kernel_session(struct ltt_kernel_session *ksess, int wpipe) } /* Quiescent wait after starting trace */ - kernel_wait_quiescent(wpipe); + kernel_wait_quiescent(kernel_tracer_fd); ksess->started = 1; @@ -841,7 +841,7 @@ int cmd_enable_channel(struct ltt_session *session, goto error; } - kernel_wait_quiescent(wpipe); + kernel_wait_quiescent(kernel_tracer_fd); /* * If the session was previously started, start as well this newly -- 2.34.1