Fix: lttng_destroy_session_no_wait: return 0 on success
[lttng-tools.git] / src / lib / lttng-ctl / lttng-ctl.c
index 29ebe9c9ea99ccb76fae9c5d753bf456c53264e5..52b5263d89ae34c046be44c94766caf94bb1be9e 100644 (file)
@@ -2070,7 +2070,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;
 }
 
 /*
This page took 0.023972 seconds and 4 git commands to generate.