Fix: report initialization error of app registration thread
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 Dec 2018 21:54:20 +0000 (16:54 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Dec 2018 21:02:47 +0000 (16:02 -0500)
commit2863220c993ba6c7a8fe29e904c66fa8ffd7132d
tree10c301e3c172b9dc1068766f6d365b7e867120b6
parentde35be080b8080e2f6bb905487a1b44b1e772a0a
Fix: report initialization error of app registration thread

The health check tests use the testpoints() in the application
registration thread to force a pthread_exit() or simulate a
catastrophic error within the thread.

The testpoints were moved before the signal that the thread's
initialization was completed by recent changes. This caused the thread
to fail to complete its initialization, causing a deadlock of the
session daemon on launch.

This commit reports initialization errors through the
launch_application_registration_thread() function to the "main" thread
and shuts down the session daemon. It also moves the testpoints after
the thread's initialization to respect the test's intent.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/register.c
This page took 0.025134 seconds and 4 git commands to generate.