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-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=a0b34569a7cfe37b2112b3d77920aa64e1e8f9f3 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);