Fix: Wrong fd used by kernel_wait_quiescent
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 386b99ae216504e86cf9225f300816791e4f4234..37a803b05ff12d399bb9d6de6a1c8bafe9fb2b2f 100644 (file)
@@ -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
This page took 0.03416 seconds and 4 git commands to generate.