X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmanage-apps.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fmanage-apps.cpp;h=ef55b452e8b54b63a37366fcd25a5a8d39089a4a;hp=68e70676aa1daf0ff0a7340907891f6d9bd02a65;hb=a7db814eb92cdd2d5a19f37677f3ba7228655758;hpb=0a05887dab55e30a006e46c5451ea32bd25096de diff --git a/src/bin/lttng-sessiond/manage-apps.cpp b/src/bin/lttng-sessiond/manage-apps.cpp index 68e70676a..ef55b452e 100644 --- a/src/bin/lttng-sessiond/manage-apps.cpp +++ b/src/bin/lttng-sessiond/manage-apps.cpp @@ -37,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 @@ -167,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,