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.11.0-rc1~476 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3d678709de990ea765cbc7699719e2862bfccd1e;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 7c51f34a2..485a75134 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -2592,7 +2592,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); (void) execl(consumer_to_use,