From: Jérémie Galarneau Date: Mon, 9 Sep 2019 16:08:21 +0000 (-0400) Subject: Fix sessiond: report flush errors on session stop X-Git-Tag: v2.11.0-rc4~77 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=653fcfe69a5814ca6de4ba248d35487b23b0c307;p=lttng-tools.git Fix sessiond: report flush errors on session stop Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 82d920703..10fd45757 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -2693,6 +2693,7 @@ int cmd_stop_trace(struct ltt_session *session) ret = kernel_metadata_flush_buffer(ksession->metadata_stream_fd); if (ret < 0) { ERR("Kernel metadata flush failed"); + error_occurred = true; } } @@ -2701,6 +2702,7 @@ int cmd_stop_trace(struct ltt_session *session) ret = kernel_flush_buffer(kchan); if (ret < 0) { ERR("Kernel flush buffer error"); + error_occurred = true; } }