.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / src / bin / lttng-sessiond / manage-apps.cpp
index 27fa6ce85e0e47afd522698c7ebe067f8250ff17..ef55b452e8b54b63a37366fcd25a5a8d39089a4a 100644 (file)
@@ -13,6 +13,8 @@
 #include "thread.hpp"
 #include "utils.hpp"
 
+#include <fcntl.h>
+
 namespace {
 struct thread_notifiers {
        struct lttng_pipe *quit_pipe;
@@ -35,7 +37,7 @@ static void cleanup_application_management_thread(void *data)
  *
  * 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().
+ * associated data structures through ust_app_unregister_by_socket().
  *
  * Note that this thread never sends commands to the applications
  * through the command sockets; it merely listens for hang-ups
@@ -165,7 +167,7 @@ static void *thread_application_management(void *data)
                                        }
 
                                        /* Socket closed on remote end. */
-                                       ust_app_unregister(pollfd);
+                                       ust_app_unregister_by_socket(pollfd);
                                } else {
                                        ERR("Unexpected poll events %u for sock %d",
                                            revents,
This page took 0.023618 seconds and 4 git commands to generate.