X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng-sessiond%2Fust-app.c;h=cd5829cb6342bcc8f19676d1698c4193b9a9564d;hp=78c84bd755a82e0313743fc853bd77faac5648d2;hb=aea829b3086fb53d411eb79a5abe0e706d4d9cf3;hpb=8f7a84dd224c529cb7a366f6b191d57bf980d339 diff --git a/lttng-sessiond/ust-app.c b/lttng-sessiond/ust-app.c index 78c84bd75..cd5829cb6 100644 --- a/lttng-sessiond/ust-app.c +++ b/lttng-sessiond/ust-app.c @@ -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) {