Fix: use error code path instead of break when errors happen before execl
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 7c51f34a2dc79a28b468dcbcd373cd3e411055f5..485a7513410e502c5f8f933e2f76fb9e4c420766 100644 (file)
@@ -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,
This page took 0.026457 seconds and 5 git commands to generate.