[scudo][standalone] Fix Android logging
authorKostya Kortchinsky <kostyak@google.com>
Tue, 28 Jan 2020 17:38:59 +0000 (09:38 -0800)
committerKostya Kortchinsky <kostyak@google.com>
Tue, 28 Jan 2020 19:03:39 +0000 (11:03 -0800)
commita1f6ff26814b86fdd7dfc9083bbefe5cf1790ab8
treec28631dbaf4ff21c5bc58bfc62ee94ce1f4e760c
parentb8461fc0c7196a2d169a9cf98a7c7cf282928d58
[scudo][standalone] Fix Android logging

Summary:
Zygote & children's stderr is lost, so use Bionic's provided allocation
free syslog function for `outputRaw`. Get rid of the mutex as it's not
vital and could cause issues with `fork`.

Reviewers: cferris, pcc, eugenis, hctim, morehouse

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D73561
compiler-rt/lib/scudo/standalone/linux.cpp