summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-03-13 06:50:32 -0700
committerMark Salyzyn <salyzyn@google.com>2015-12-30 10:03:37 -0800
commita0140047525b3c12e9e64903fb7b85fea0d5a0f9 (patch)
tree33d70870f0748941a1bddb9b6fd118fcfb7f0df2 /base/errors_unix.cpp
parentb5e821316da31d2f4d06c3dea74ed57098b69033 (diff)
liblog: add __android_log_is_loggable checking to writer
Add __android_log_is_loggable() checking for all buffers except LOG_ID_SECURITY. Return -EPERM if blocked. Since we are sniffing the log tag, check validity and return -EINVAL. NB: Try not to call __android_log_is_loggable() in native code within a signal handler. Both here, and in the system properties, there are locking paths that are not guaranteed to play well in that environment. This has also been the case for the log writer path even before this change. All attempts have been made to use trylock, and to use a more expensive code path when contention occurs rather than lead to deadlock. Bug: 19544788 Bug: 26178938 Change-Id: I98738c662f6328189a6703251eb8721a05e956f9
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions