Fix: rotation: hang on destroy when using scheduled rotation based on timer
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 51b73bc4e6d02f22d60163b430f9a16f20fea8fa..6f3dd7177b2a2b5cf84661a9836f1be4807d9009 100644 (file)
@@ -2866,7 +2866,7 @@ int cmd_start_trace(struct ltt_session *session)
         */
        session->rotated_after_last_stop = false;
 
-       if (session->rotate_timer_period) {
+       if (session->rotate_timer_period && !session->rotation_schedule_timer_enabled) {
                int int_ret = timer_session_rotation_schedule_timer_start(
                                session, session->rotate_timer_period);
 
@@ -3805,6 +3805,7 @@ enum lttng_error_code cmd_list_channels(enum lttng_domain_type domain,
                        extended->lost_packets = lost_packets;
 
                        ret = lttng_channel_serialize(channel, buffer);
+                       lttng_channel_destroy(channel);
                        if (ret) {
                                ret = -1;
                                break;
This page took 0.024799 seconds and 4 git commands to generate.