This prevent failure and hang for the long_regression test suite.
Otherwise the sessiond error out before the test completion due to an
invalid thread state.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: Ie4bf3bea6f84f49f5eceb413ae75a7e6fff08a8f
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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");