From: Mathieu Desnoyers Date: Thu, 10 Nov 2011 18:11:54 +0000 (-0500) Subject: UST support: send commands to app before register done X-Git-Tag: v2.0-pre15~136^2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=acc7b41b9007d9c9fea8d90f6dcc0a60a4f418c9;p=lttng-tools.git UST support: send commands to app before register done Required for handling of short-lived applications. Signed-off-by: Mathieu Desnoyers --- 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 {