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>
Mon, 10 Dec 2018 20:24:50 +0000 (15:24 -0500)
commit143745a6d56824ceb630548e96f95ea54361c5ff
tree920f431e4fa02231091f00ad6bf38f903badca01
parent4ac33400cf03d2e8e029f31e269e3cee8d139490
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.02624 seconds and 4 git commands to generate.