Add UST default channel creation support
[lttng-tools.git] / lttng-sessiond / ust-app.c
index 78c84bd755a82e0313743fc853bd77faac5648d2..cd5829cb6342bcc8f19676d1698c4193b9a9564d 100644 (file)
@@ -1146,9 +1146,10 @@ int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app)
                goto error_rcu_unlock;
        }
 
-       /* upon restart, we skip the setup, already done */
-       if (ua_sess->started)
+       /* Upon restart, we skip the setup, already done */
+       if (ua_sess->started) {
                goto skip_setup;
+       }
 
        ret = create_ust_app_metadata(ua_sess, usess->pathname, app);
        if (ret < 0) {
@@ -1199,6 +1200,7 @@ int ust_app_start_trace(struct ltt_ust_session *usess, struct ust_app *app)
                ret = -EINVAL;
                goto error_rcu_unlock;
        }
+
        /* Setup UST consumer socket and send fds to it */
        ret = ust_consumer_send_session(consumerd_fd, ua_sess);
        if (ret < 0) {
This page took 0.023706 seconds and 4 git commands to generate.