Stop the application registration thread before orphaned threads
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Dec 2018 16:09:32 +0000 (11:09 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Dec 2018 21:34:34 +0000 (16:34 -0500)
commitbd9addf713e7dc8fc47499f62312966a3a5f4d46
treed585f89464f75f4b6a1035f57d065a02edc8a72c
parentf9d2ba6ae32397fd818279ea90d3691c60f0e079
Stop the application registration thread before orphaned threads

The application registration thread receives new connections from
applications, provides them to the dispatch thread. The dispatch
thread, in turn, forwards the command and notification sockets of
applications (liblttng-ust) to the application management and
application notification threads.

Not shutting down the application registration thread is problematic
since application connections will be accepted but not associated
to an "ust_app" structure as the following threads are no longer
present.

The remaining threads can then be safely torn down as part of the
orphaned threads.

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