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:15:44 +0000 (17:15 -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 50eead010a3e2e72b053f4c899a49a2a02f86042..0e121b6040ecd359d8ea9e4e474618a272f8a4d4 100644 (file)
@@ -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,
This page took 0.027844 seconds and 4 git commands to generate.