Fix: destroy called twice on quit pipe
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 14 Dec 2018 20:36:20 +0000 (15:36 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Feb 2019 19:48:34 +0000 (14:48 -0500)
A consumer management thread can be launched successsfully and yet
still report an error encoutered during its initialization. If
such an error occurs, the cleanup function is invoked explicitly
in the error path and will be called again when the last reference
to the thread is released.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/manage-consumer.c

index 68c7d649b6d4ffff9fc2b59a40e2deda55385201..b710c61f80ed3d837aa03a92c511e0176e13fd10 100644 (file)
@@ -471,7 +471,7 @@ bool launch_consumer_management_thread(struct consumer_data *consumer_data)
        wait_until_thread_is_ready(notifiers);
        lttng_thread_put(thread);
        if (notifiers->initialization_result) {
-               goto error;
+               return false;
        }
        return true;
 error:
This page took 0.035989 seconds and 5 git commands to generate.