From: Jonathan Rajotte Date: Wed, 26 Jul 2017 14:29:17 +0000 (-0400) Subject: Fix: use error code path instead of break when errors happen before execl X-Git-Tag: v2.8.8~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6f386b41329b07913dedb012ec6d90e510a1dc63;p=lttng-tools.git Fix: use error code path instead of break when errors happen before execl Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 50eead010..0e121b604 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -2569,7 +2569,7 @@ static pid_t spawn_consumerd(struct consumer_data *consumer_data) } else { DBG("Could not find any valid consumerd executable"); ret = -EINVAL; - break; + goto error; } DBG("Using kernel consumer at: %s", consumer_to_use); ret = execl(consumer_to_use,