X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdestroy.c;h=e1833c89ccd8183609f0b18065764691ac6117ae;hb=9f778c9a8f1d65f5bfdde7cfd7294492d6fdd34c;hp=b0262ea2f0bbf5e1a3ec7e36925f3b3c9e1fccdd;hpb=ca1c3607d2f5654163875cda874f43971df0f696;p=lttng-tools.git diff --git a/src/bin/lttng/commands/destroy.c b/src/bin/lttng/commands/destroy.c index b0262ea2f..e1833c89c 100644 --- a/src/bin/lttng/commands/destroy.c +++ b/src/bin/lttng/commands/destroy.c @@ -52,7 +52,7 @@ static void usage(FILE *ofp) fprintf(ofp, "get it from the configuration directory (.lttng).\n"); fprintf(ofp, "\n"); fprintf(ofp, " -h, --help Show this help\n"); - fprintf(ofp, " --list-options Simple listing of options\n"); + fprintf(ofp, " --list-options Simple listing of options\n"); fprintf(ofp, "\n"); } @@ -77,6 +77,7 @@ static int destroy_session() ret = lttng_destroy_session(session_name); if (ret < 0) { + /* Don't set ret so lttng can interpret the sessiond error. */ goto free_name; }