From a0b34569a7cfe37b2112b3d77920aa64e1e8f9f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 17 Oct 2019 14:35:34 -0400 Subject: [PATCH] Fix: sessiond: NULL thread_state provided to pthread_cleanup callback MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The callback registered through pthread_cleanup_push(...), thread_init_cleanup, now expects a non-NULL thread_state argument. The thread_state is passed to match this recent change. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/register.c b/src/bin/lttng-sessiond/register.c index 36e1a0d31..464b89459 100644 --- a/src/bin/lttng-sessiond/register.c +++ b/src/bin/lttng-sessiond/register.c @@ -175,7 +175,7 @@ static void *thread_application_registration(void *data) DBG("[thread] Manage application registration started"); - pthread_cleanup_push(thread_init_cleanup, NULL); + pthread_cleanup_push(thread_init_cleanup, thread_state); health_register(health_sessiond, HEALTH_SESSIOND_TYPE_APP_REG); ret = lttcomm_listen_unix_sock(application_socket); -- 2.34.1