Fix: ask new streams HUP
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index 8e074fd91b0dcbe829f8c053d32ac6e92766d32c..9b4fc9015501b08b3aca97db1319ae003c201b4d 100644 (file)
@@ -108,14 +108,6 @@ struct ltt_kernel_session *trace_kernel_create_session(void)
                goto error;
        }
 
-       /*
-        * The tmp_consumer stays NULL until a set_consumer_uri command is
-        * executed. At this point, the consumer should be nullify until an
-        * enable_consumer command. This assignment is symbolic since we've zmalloc
-        * the struct.
-        */
-       lks->tmp_consumer = NULL;
-
        return lks;
 
 error:
@@ -196,6 +188,8 @@ struct ltt_kernel_context *trace_kernel_create_context(
                memcpy(&kctx->ctx, ctx, sizeof(kctx->ctx));
        }
 
+       CDS_INIT_LIST_HEAD(&kctx->list);
+
 error:
        return kctx;
 }
@@ -513,8 +507,7 @@ void trace_kernel_destroy_session(struct ltt_kernel_session *session)
        }
 
        /* Wipe consumer output object */
-       consumer_destroy_output(session->consumer);
-       consumer_destroy_output(session->tmp_consumer);
+       consumer_output_put(session->consumer);
 
        free(session);
 }
This page took 0.02762 seconds and 4 git commands to generate.