From: Jérémie Galarneau Date: Thu, 17 Oct 2019 18:35:34 +0000 (-0400) Subject: Fix: sessiond: NULL thread_state provided to pthread_cleanup callback X-Git-Tag: v2.11.0~2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=be6cb2f4ac4187c08fba0b6d7594ff26efc9ce4e;p=lttng-tools.git Fix: sessiond: NULL thread_state provided to pthread_cleanup callback 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 --- 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);