X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fregister.c;h=6776019c68d3cdef3cfd4439906363a56b345c39;hp=b75db4ed9533f9c0e73025602b3729514d89d111;hb=bd9addf713e7dc8fc47499f62312966a3a5f4d46;hpb=f9d2ba6ae32397fd818279ea90d3691c60f0e079 diff --git a/src/bin/lttng-sessiond/register.c b/src/bin/lttng-sessiond/register.c index b75db4ed9..6776019c6 100644 --- a/src/bin/lttng-sessiond/register.c +++ b/src/bin/lttng-sessiond/register.c @@ -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; }