projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix start/stop lttng message error
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index 12322837e7f681038e0ed6fe54d2ac72e035668d..b275874e7bc98dc3062b27c7529479326ef1b9bc 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-2850,7
+2850,8
@@
static int cmd_start_trace(struct ltt_session *session)
usess = session->ust_session;
if (session->enabled) {
usess = session->ust_session;
if (session->enabled) {
- ret = LTTCOMM_UST_START_FAIL;
+ /* Already started. */
+ ret = LTTCOMM_TRACE_ALREADY_STARTED;
goto error;
}
goto error;
}
@@
-2942,7
+2943,7
@@
static int cmd_stop_trace(struct ltt_session *session)
usess = session->ust_session;
if (!session->enabled) {
usess = session->ust_session;
if (!session->enabled) {
- ret = LTTCOMM_
UST_STOP_FAIL
;
+ ret = LTTCOMM_
TRACE_ALREADY_STOPPED
;
goto error;
}
goto error;
}
This page took
0.024512 seconds
and
4
git commands to generate.