From 659f44dc1a605c1f38c7733035c329ddb5a198aa Mon Sep 17 00:00:00 2001 From: Muhammad Qureshi Date: Tue, 11 Feb 2020 14:20:44 -0800 Subject: [PATCH] Use renamed AStatsSocket_close() As part of statsd becoming a Mainline module in R, we need to formalize the API surface for statsd. This change updates the usages of stats_log_close() to AStatsSocket_close() created in ag/10299810. Bug: 145923416 Test: m Change-Id: Id6a8efff657eafc349db621f39de40311863c6a1 --- core/jni/com_android_internal_os_Zygote.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp index 7a9a3f8643c01..b9ac8d4fe780f 100644 --- a/core/jni/com_android_internal_os_Zygote.cpp +++ b/core/jni/com_android_internal_os_Zygote.cpp @@ -72,9 +72,9 @@ #include #include +#include #include #include -#include #include #include #include @@ -84,13 +84,13 @@ #include #include #include -#include -#include -#include -#include -#include #include #include +#include +#include +#include +#include +#include #include "core_jni_helpers.h" #include @@ -1078,7 +1078,7 @@ static pid_t ForkCommon(JNIEnv* env, bool is_system_server, // Close any logging related FDs before we start evaluating the list of // file descriptors. __android_log_close(); - stats_log_close(); + AStatsSocket_close(); // If this is the first fork for this zygote, create the open FD table. If // it isn't, we just need to check whether the list of open files has changed @@ -1639,7 +1639,7 @@ static void SpecializeCommon(JNIEnv* env, uid_t uid, gid_t gid, jintArray gids, SetCapabilities(permitted_capabilities, effective_capabilities, permitted_capabilities, fail_fn); __android_log_close(); - stats_log_close(); + AStatsSocket_close(); const char* se_info_ptr = se_info.has_value() ? se_info.value().c_str() : nullptr; const char* nice_name_ptr = nice_name.has_value() ? nice_name.value().c_str() : nullptr;