Teardown the notification thread after the sessiond clean-up
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread.c
index 9809e6190cd60cbb453cea62b704a62e6da84cc5..b42b282e10cfbc98e262eca77ad6fd6dbeac1213 100644 (file)
@@ -653,7 +653,8 @@ bool shutdown_notification_thread(void *thread_data)
        return true;
 }
 
-bool launch_notification_thread(struct notification_thread_handle *handle)
+struct lttng_thread *launch_notification_thread(
+               struct notification_thread_handle *handle)
 {
        struct lttng_thread *thread;
 
@@ -672,8 +673,7 @@ bool launch_notification_thread(struct notification_thread_handle *handle)
         * (e.g. rotation thread).
         */
        wait_until_thread_is_ready(handle);
-       lttng_thread_put(thread);
-       return true;
+       return thread;
 error:
-       return false;
+       return NULL;
 }
This page took 0.02536 seconds and 5 git commands to generate.