Merge "Close statsd log socket before zygote fork()."

This commit is contained in:
Christian Wailes
2018-11-02 21:07:02 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ cc_library_shared {
"libseccomp_policy",
"libgrallocusage",
"libscrypt_static",
"libstatssocket",
],
shared_libs: [

View File

@@ -56,6 +56,7 @@
#include <utils/String8.h>
#include <selinux/android.h>
#include <seccomp_policy.h>
#include <stats_event_list.h>
#include <processgroup/processgroup.h>
#include "core_jni_helpers.h"
@@ -788,6 +789,7 @@ static pid_t ForkCommon(JNIEnv* env, jstring java_se_name, bool is_system_server
// Close any logging related FDs before we start evaluating the list of
// file descriptors.
__android_log_close();
stats_log_close();
std::string error_msg;