Docs: describe the apps_thread's working in function header
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 13 Dec 2017 23:24:10 +0000 (18:24 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 13 Dec 2017 23:25:54 +0000 (18:25 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index 4c3a1796c8aa58abac502fbee00195b68c0d262d..3625bba0f2d6d1f64049984f5209626d5d1dfcb1 100644 (file)
@@ -1445,7 +1445,17 @@ error_poll:
 }
 
 /*
- * This thread manage application communication.
+ * This thread receives application command sockets (FDs) on the
+ * apps_cmd_pipe and waits (polls) on them until they are closed
+ * or an error occurs.
+ *
+ * At that point, it flushes the data (tracing and metadata) associated
+ * with this application and tears down ust app sessions and other
+ * associated data structures through ust_app_unregister().
+ *
+ * Note that this thread never sends commands to the applications
+ * through the command sockets; it merely listens for hang-ups
+ * and errors on those sockets and cleans-up as they occur.
  */
 static void *thread_manage_apps(void *data)
 {
This page took 0.027441 seconds and 4 git commands to generate.