Cleanup: ust start/stop trace
[lttng-tools.git] / src / bin / lttng-sessiond / cmd.c
index 507274f35568bc421887ebfb88674d476297af1d..d3c8376be1a01cf691f4a02be1ffe93c09c4a6b0 100644 (file)
@@ -2684,12 +2684,6 @@ int cmd_start_trace(struct ltt_session *session)
 
        /* Flag session that trace should start automatically */
        if (usess) {
-               /*
-                * Even though the start trace might fail, flag this session active so
-                * other application coming in are started by default.
-                */
-               usess->active = 1;
-
                ret = ust_app_start_trace_all(usess);
                if (ret < 0) {
                        ret = LTTNG_ERR_UST_START_FAIL;
@@ -2781,12 +2775,6 @@ int cmd_stop_trace(struct ltt_session *session)
        }
 
        if (usess && usess->active) {
-               /*
-                * Even though the stop trace might fail, flag this session inactive so
-                * other application coming in are not started by default.
-                */
-               usess->active = 0;
-
                ret = ust_app_stop_trace_all(usess);
                if (ret < 0) {
                        ret = LTTNG_ERR_UST_STOP_FAIL;
This page took 0.024736 seconds and 5 git commands to generate.