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>
Thu, 6 Dec 2018 21:34:34 +0000 (16:34 -0500)
commitfaadaa3a56561aca9dbd8f10f91d1e0fc40ed7e2
treef15884ad363efa8f25e91499cbe5306a5634fe57
parent0d64e8fbee878b0de2c0bbe819d5e40790112a01
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.025207 seconds and 4 git commands to generate.