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);
goto error_listen;
}
- if (testpoint(sessiond_thread_registration_apps)) {
- goto error_create_poll;
- }
-
/*
* Pass 2 as size here for the thread quit pipe and apps_sock. Nothing
* more will be added to this poll set.
set_thread_status(thread_state, true);
pthread_cleanup_pop(0);
+ if (testpoint(sessiond_thread_registration_apps)) {
+ goto error_poll_add;
+ }
+
while (1) {
DBG("Accepting application registration");
if (ret) {
PERROR("close");
}
+ sock = -1;
goto error;
}