From 63763958ab19923beef7f52956062b83747d923e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 4 Dec 2018 17:46:00 -0500 Subject: [PATCH] Stop sessions before destroying on teardown of session daemon MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Stopping sessions ensures that trace data is no longer produced for a session which will allow pending rotations to complete. It also ensure that no data is produced beyond the last rename of a rotated session's output folder. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 579d49ab8..6d0fb42e3 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -1705,6 +1705,7 @@ static void destroy_all_sessions_and_wait(void) if (session->destroyed) { goto unlock_session; } + (void) cmd_stop_trace(session); (void) cmd_destroy_session(session, notification_thread_handle); unlock_session: -- 2.34.1