Errors encountered during the destruction of a session can cause
the `lttng` client to exit after having printed the
'Waiting for destruction of session ...' message without printing
a newline. This causes the user's prompt to reappear after the
message and not on a new line.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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)) {
ret = CMD_SUCCESS;
error:
+ if (printed_wait_msg) {
+ MSG("");
+ }
lttng_destruction_handle_destroy(handle);
free(session_name);
return ret;