commit | 7740d1b2275044627d819d9ecadaef4f38a3ba6b | [log] [tgz] |
---|---|---|
author | Mark Salyzyn <salyzyn@google.com> | Mon Oct 10 07:27:42 2016 -0700 |
committer | Mark Salyzyn <salyzyn@google.com> | Thu Oct 13 21:43:42 2016 +0000 |
tree | 4e59badd165715d6c89b24dc3d967abf1d37fb91 | |
parent | 740f9b2e3dc2fa7583dbb53d6f36ade63df74367 [diff] |
liblog: __android_log_pmsg_file_write() cleanup __android_log_pmsg_file_write() will open /dev/pmsg0 if not already, and will close it if we opened it. Added atomic access to the android_log_context as insurance. Fortify and correct pmsg tests. Test: gTest liblog-unit-tests --gtest_filter=liblog.__android_log_pmsg_file_* Bug: 31958686 Change-Id: I2cf6f971b6968938f471fda67367efe20dae3004