X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng-sessiond%2Fmain.c;h=f11cfc0979ab8827abb800bdf2cc6e8dcf52833e;hp=cc7885399c288a24cabf2c10dd9e431b6b0778de;hb=acc7b41b9007d9c9fea8d90f6dcc0a60a4f418c9;hpb=276b26d1bad8b6ede22c70f786f52e467e658bf6 diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c index cc7885399..f11cfc097 100644 --- a/lttng-sessiond/main.c +++ b/lttng-sessiond/main.c @@ -1057,6 +1057,12 @@ static void *thread_manage_apps(void *data) goto error; } + /* + * Add channel(s) and event(s) to newly registered apps + * from lttng global UST domain. + */ + update_ust_app(ust_cmd.sock); + ret = ustctl_register_done(ust_cmd.sock); if (ret < 0) { /* @@ -1078,11 +1084,6 @@ static void *thread_manage_apps(void *data) ust_cmd.sock); } - /* - * Add channel(s) and event(s) to newly registered apps - * from lttng global UST domain. - */ - update_ust_app(ust_cmd.sock); break; } } else {