From acc7b41b9007d9c9fea8d90f6dcc0a60a4f418c9 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 10 Nov 2011 13:11:54 -0500 Subject: [PATCH] UST support: send commands to app before register done Required for handling of short-lived applications. Signed-off-by: Mathieu Desnoyers --- lttng-sessiond/main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 { -- 2.34.1