X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread.c;h=b42b282e10cfbc98e262eca77ad6fd6dbeac1213;hp=9809e6190cd60cbb453cea62b704a62e6da84cc5;hb=4a91420cefb94afc4a20042bdbe2564086dad3cb;hpb=4ec029ed8d032ac98d8dc158a751841b7c150639 diff --git a/src/bin/lttng-sessiond/notification-thread.c b/src/bin/lttng-sessiond/notification-thread.c index 9809e6190..b42b282e1 100644 --- a/src/bin/lttng-sessiond/notification-thread.c +++ b/src/bin/lttng-sessiond/notification-thread.c @@ -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; }