X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl.c;h=b28656ee19be5fb8e70d4f372e147fea05d2419b;hb=c878274a9c59ccaeab58e6e21ee30191432faabb;hp=ad4974a1395cd4d284a3c56b3ac10bf4178c0381;hpb=73bbfeee351ab85e3ce37d785c05b9e62e0b7b53;p=lttng-tools.git diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index ad4974a13..b28656ee1 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -2128,7 +2128,7 @@ int lttng_destroy_session_no_wait(const char *session_name) enum lttng_error_code ret_code; ret_code = lttng_destroy_session_ext(session_name, NULL); - return ret_code == LTTNG_OK ? ret_code : -ret_code; + return ret_code == LTTNG_OK ? 0 : -ret_code; } /*