projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1167f2b
)
Fix: Warn if session is running with lttng view
author
David Goulet
<dgoulet@efficios.com>
Wed, 14 Nov 2012 18:42:44 +0000
(13:42 -0500)
committer
David Goulet
<dgoulet@efficios.com>
Wed, 14 Nov 2012 18:42:46 +0000
(13:42 -0500)
Fixes #156
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/view.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng/commands/view.c
b/src/bin/lttng/commands/view.c
index 430f8b62cfd208375691f3dda72ceb64f9ee881a..dd3c9a3cc225b06d2ff055fdfb7acdfe0bc141ef 100644
(file)
--- 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);
This page took
0.025549 seconds
and
4
git commands to generate.