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.10.0~21 X-Git-Url: http://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=a91b8bf47693fd465aff1049f658df2d62cfc967 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,