Stop the application registration thread before orphaned threads
[lttng-tools.git] / src / bin / lttng-sessiond / register.c
index b75db4ed9533f9c0e73025602b3729514d89d111..6776019c68d3cdef3cfd4439906363a56b345c39 100644 (file)
@@ -361,7 +361,7 @@ static bool shutdown_application_registration_thread(void *data)
        return notify_thread_pipe(write_fd) == 1;
 }
 
-bool launch_application_registration_thread(
+struct lttng_thread *launch_application_registration_thread(
                struct ust_cmd_queue *cmd_queue)
 {
        struct lttng_pipe *quit_pipe;
@@ -388,9 +388,8 @@ bool launch_application_registration_thread(
        if (!thread) {
                goto error;
        }
-       lttng_thread_put(thread);
-       return true;
+       return thread;
 error:
        cleanup_application_registration_thread(notifiers);
-       return false;
+       return NULL;
 }
This page took 0.024462 seconds and 5 git commands to generate.