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:
bd337b9
)
Fix: don't stop a session that was not previously started
author
David Goulet
<dgoulet@efficios.com>
Tue, 25 Jun 2013 16:03:20 +0000
(12:03 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Tue, 25 Jun 2013 16:03:20 +0000
(12:03 -0400)
Fixes #567
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/cmd.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-sessiond/cmd.c
b/src/bin/lttng-sessiond/cmd.c
index cbf2bceff27908a164128ce27328459b4e5cfadf..9b7306b794668b0b75831306a0a3eeacc9f20625 100644
(file)
--- a/
src/bin/lttng-sessiond/cmd.c
+++ b/
src/bin/lttng-sessiond/cmd.c
@@
-1553,7
+1553,7
@@
int cmd_stop_trace(struct ltt_session *session)
session->enabled = 0;
/* Kernel tracer */
- if (ksession) {
+ if (ksession
&& ksession->started
) {
DBG("Stop kernel tracing");
/* Flush metadata if exist */
@@
-1583,7
+1583,7
@@
int cmd_stop_trace(struct ltt_session *session)
ksession->started = 0;
}
- if (usess) {
+ if (usess
&& usess->start_trace
) {
usess->start_trace = 0;
ret = ust_app_stop_trace_all(usess);
This page took
0.027604 seconds
and
4
git commands to generate.