summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-11-06 12:26:52 -0800
committerMark Salyzyn <salyzyn@google.com>2015-11-12 15:39:04 -0800
commit7a2a3071921b11d7e476862e7f9cbe72be43d0f7 (patch)
tree1fa427048f6f17e5fa144abda6bb1cf4516b10c8 /base/errors_unix.cpp
parent8ce943b3f6553c1cc707ac725911e70036d05175 (diff)
liblog: resolve deadlocks
Although ever present, an increased regression introduced with commit b6bee33182cedea49199eb2252b3f3b442899c6d (liblog: logd: support logd.timestamp = monotonic). A signal handler can interrupt in locked context, if log is written in the signal handler, we are in deadlock. Block signals while we are locked. Separate out timestamp lock from is loggable lock to reduce contention situations. Provide a best-guess response if lock would fail in timestamp path. Bug: 25563384 Change-Id: I6dccd6b99ebace1c473c03a785a35c63ed5c6a8a
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions