OSDN Git Service

Close statsd log socket before zygote fork().
authorHoward Ro <yro@google.com>
Tue, 2 Oct 2018 19:08:28 +0000 (12:08 -0700)
committerChris Wailes <chriswailes@google.com>
Thu, 1 Nov 2018 22:24:33 +0000 (15:24 -0700)
commit65e48ec13e97531b8820876917ce98a0c3a8705c
treea6937292a9c8dcb51c089bf22d119adc3050ae40
parentfc406201033e361c3f4d62364b079fb155127a62
Close statsd log socket before zygote fork().

MetricsLogger will start to write to statsd instead of logd. Zygote uses
MetricsLogger too. So we need to close statsd socket before zygote fork() is
called (see b/30963384 for context).

Bug: 110537511
Test: Manually verified that it successfully boots with no crash with
ag/5112579 and ag/5169664 (together)

Change-Id: Id550fbd5ac2f6ca47d3293c12fb537fafa3f33a0
Merged-In: Id550fbd5ac2f6ca47d3293c12fb537fafa3f33a0
core/jni/Android.bp
core/jni/com_android_internal_os_Zygote.cpp