diff options
| author | 2021-10-19 16:24:31 +0000 | |
|---|---|---|
| committer | 2021-10-19 16:24:31 +0000 | |
| commit | 8cd6676333033506998c932846bbbee467d9007f (patch) | |
| tree | 9662ef03e34f5513275aeb3507b11e62160e120c /libs/binder/ProcessState.cpp | |
| parent | 269a5d6d937d9b39056aa6f416034ede0ecbafb1 (diff) | |
| parent | bd98e0f0ffd0b48f4e0089723edf6fa447161486 (diff) | |
Merge "libbinder: use after fork aborts"
Diffstat (limited to 'libs/binder/ProcessState.cpp')
| -rw-r--r-- | libs/binder/ProcessState.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index e2ab515649..4f21cda4a1 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -93,9 +93,7 @@ sp<ProcessState> ProcessState::selfOrNull() [[clang::no_destroy]] static std::mutex gProcessMutex; static void verifyNotForked(bool forked) { - if (forked) { - ALOGE("libbinder does not support being forked"); - } + LOG_ALWAYS_FATAL_IF(forked, "libbinder ProcessState can not be used after fork"); } sp<ProcessState> ProcessState::init(const char *driver, bool requireDefault) |