From: Jérémie Galarneau Date: Tue, 4 Dec 2018 22:46:00 +0000 (-0500) Subject: Stop sessions before destroying on teardown of session daemon X-Git-Tag: v2.12.0-rc1~713 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=63763958ab19923beef7f52956062b83747d923e;ds=sidebyside Stop sessions before destroying on teardown of session daemon 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 --- 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: