From: Jérémie Galarneau Date: Tue, 15 Oct 2019 20:56:22 +0000 (-0400) Subject: Fix: sessiond: application channel creation failure stops start cmd X-Git-Tag: v2.11.0~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=56c23a6713914d9fa898c1a3fe80e21b3e73eef9;p=lttng-tools.git Fix: sessiond: application channel creation failure stops start cmd The creation of an application's channel can fail when, for instance, a context can't be created. This causes applications that would have been started _after_ it to never be started. This keeps the iteration going on error and starts all applications that could be started. This is more in line with the behaviour of 2.10 (and earlier) since those channel creations would occur as applications registered and not on tracing "start". Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index a53cf24e2..f4185bc23 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -4212,7 +4212,7 @@ int ust_app_create_channel_glb(struct ltt_ust_session *usess, if (session_was_created) { destroy_app_session(app, ua_sess); } - goto error_rcu_unlock; + /* Continue to the next application. */ } }