X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fview.c;h=dd3c9a3cc225b06d2ff055fdfb7acdfe0bc141ef;hp=430f8b62cfd208375691f3dda72ceb64f9ee881a;hb=94e60b1f03ae2c3c9450ffc3eca8e052e2c37fb4;hpb=1167f2bcb1a5d20421029b37a6d3c0d9cd2e5402 diff --git a/src/bin/lttng/commands/view.c b/src/bin/lttng/commands/view.c index 430f8b62c..dd3c9a3cc 100644 --- a/src/bin/lttng/commands/view.c +++ b/src/bin/lttng/commands/view.c @@ -343,6 +343,13 @@ static int view_trace(void) trace_path = opt_trace_path; } + if (sessions[i].enabled) { + WARN("Session %s is running. Please stop it before reading it.", + session_name); + ret = CMD_ERROR; + goto free_sessions; + } + MSG("Trace directory: %s\n", trace_path); ret = spawn_viewer(trace_path);