Perform the clean-up of application notify sockets in main thread
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 6 Dec 2018 19:47:34 +0000 (14:47 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 10 Dec 2018 20:24:50 +0000 (15:24 -0500)
commit44975bc95b2fdded632a15e59440e74a4fb42ff1
tree7dafdcf0e299986b2088401c68de8dd6b8f9327d
parent813ef6cbceba1863b3aa1bddebee5c9a2df40494
Perform the clean-up of application notify sockets in main thread

The notify sockets of applications are owned by the "notify-apps"
thread. If an application exits during the course of the session
daemon's life, the notify thread will take care of cleaning its
associated notify socket.

However, there is no teardown/clean-up code to handle their
clean-up when the daemon is torn down.

This change adds a new step in the sessiond clean-up code that
closes closes all notify sockets present in the
ust_app_by_notify_sock hash table at the time of the sessiond
cleanup.

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