OSDN Git Service

Don't LOG() after fork() and before exec().
authorMartijn Coenen <maco@google.com>
Wed, 4 Dec 2019 14:48:42 +0000 (15:48 +0100)
committerMartijn Coenen <maco@google.com>
Wed, 4 Dec 2019 14:50:29 +0000 (15:50 +0100)
commit10b122b4e9dfabf873f8301b97f193141bdac859
tree3b6ea6af7eecdc8a132617ca3344bd3b4da3ec44
parent7e170b919e640cde969a7fbdc75be856f43cefb0
Don't LOG() after fork() and before exec().

LOG() can hang, because another vold thread may have been holding
a libc lock at the time we forked. Simply moving the log line to
before the fork().

Bug: 135341433
Test: atest AdoptableHostTest
Change-Id: I6063eb33f35c835a226bc1e56de97ace426747ff
model/EmulatedVolume.cpp