From: Jérémie Galarneau Date: Thu, 6 Dec 2018 16:09:32 +0000 (-0500) Subject: Stop the application registration thread before orphaned threads X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;ds=sidebyside;h=bd9addf713e7dc8fc47499f62312966a3a5f4d46;hp=bd9addf713e7dc8fc47499f62312966a3a5f4d46;p=lttng-tools.git 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 ---