X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fregister.c;h=464b89459f7f6f7bc4880fa698d38188f83783ec;hb=e3876bf0e1d1be72170b53e9fcb39f3108f069dc;hp=c7e3de66ff1f22ac378731b8228f10b84634a30f;hpb=a13091b7aca3f36a14ef748aee590ad00c7a7652;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/register.c b/src/bin/lttng-sessiond/register.c index c7e3de66f..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); @@ -278,6 +278,7 @@ static void *thread_application_registration(void *data) if (ret) { PERROR("close"); } + sock = -1; goto error; }