projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: if relayd is unreachable, disable consumer for the session
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
destroy.c
diff --git
a/src/bin/lttng/commands/destroy.c
b/src/bin/lttng/commands/destroy.c
index f26da066977da67bc0fe945d55a7162cfc08196d..3fb5fb232edb16184a4a7574de9b6e623668959f 100644
(file)
--- a/
src/bin/lttng/commands/destroy.c
+++ b/
src/bin/lttng/commands/destroy.c
@@
-78,6
+78,7
@@
static int destroy_session(const char *session_name)
WARN("Session name %s not found", session_name);
break;
default:
WARN("Session name %s not found", session_name);
break;
default:
+ ERR("%s", lttng_strerror(ret));
break;
}
goto error;
break;
}
goto error;
@@
-103,7
+104,11
@@
static int destroy_all_sessions()
count = lttng_list_sessions(&sessions);
if (count == 0) {
MSG("No session found, nothing to do.");
count = lttng_list_sessions(&sessions);
if (count == 0) {
MSG("No session found, nothing to do.");
+ } else if (count < 0) {
+ ERR("%s", lttng_strerror(ret));
+ goto error;
}
}
+
for (i = 0; i < count; i++) {
ret = destroy_session(sessions[i].name);
if (ret < 0) {
for (i = 0; i < count; i++) {
ret = destroy_session(sessions[i].name);
if (ret < 0) {
This page took
0.033042 seconds
and
4
git commands to generate.