Fix: use error code path instead of break when errors happen before execl
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 26 Jul 2017 14:29:17 +0000 (10:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 1 Aug 2017 21:11:58 +0000 (17:11 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index 44b88f39f5c89808ea0c02832b563a6644cd3a53..80ca3d7c04e42704a325bb8b2aedfee1db0d7837 100644 (file)
@@ -2526,7 +2526,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,
This page took 0.028302 seconds and 4 git commands to generate.