X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdestroy.c;h=e52735f439a453067f6099c59ba7a594891a72b4;hb=26603837153339dee6b900379e4d2c8f5e61ec93;hp=7cea7bf23303a6a2cadf48709f881f58c79964f5;hpb=0fb564b16b2c8185f499426ce2836f218549232a;p=lttng-tools.git diff --git a/src/bin/lttng/commands/destroy.c b/src/bin/lttng/commands/destroy.c index 7cea7bf23..e52735f43 100644 --- a/src/bin/lttng/commands/destroy.c +++ b/src/bin/lttng/commands/destroy.c @@ -192,6 +192,7 @@ static int destroy_session(struct lttng_session *session) skip_wait_rotation: MSG("%sSession \"%s\" destroyed", printed_wait_msg ? "\n" : "", session->name); + printed_wait_msg = false; session_name = get_session_name_quiet(); if (session_name && !strncmp(session->name, session_name, NAME_MAX)) { @@ -208,6 +209,9 @@ skip_wait_rotation: ret = CMD_SUCCESS; error: + if (printed_wait_msg) { + MSG(""); + } lttng_destruction_handle_destroy(handle); free(session_name); return ret;