Fix: report initialization error of client thread
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 Dec 2018 21:54:01 +0000 (16:54 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 Dec 2018 21:54:59 +0000 (16:54 -0500)
commit6cb45e931e18f489f1eb202396148529d86470a6
treeb6154a83dfbe2143aee6f479fdec9c0825a52945
parent39d9954c97102b96fb444e52503c6bab02a9ee3f
Fix: report initialization error of client thread

The health check tests use the testpoints() in the client thread
to force a pthread_exit() or simulate a catastrophic error within
the client 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.

This commit reports initialization errors through the
launch_client_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/client.c
This page took 0.026228 seconds and 5 git commands to generate.