Use main thread for Binder transactions.

Make the main thread do something useful instead of sitting around
twiddling its thumbs.

Test: builds, boots
Bug: 67041047
Change-Id: I88f7f4fe151ae2b81f80aa575530c12b56ba4d75
This commit is contained in:
Jeff Sharkey 2017-10-18 16:52:48 -06:00
parent a6f6285875
commit 93396c14a8

View file

@ -130,12 +130,9 @@ int main(int argc, char** argv) {
ATRACE_END();
// Eventually we'll become the monitoring thread
while(1) {
pause();
}
android::IPCThreadState::self()->joinThreadPool();
LOG(INFO) << "vold shutting down";
LOG(ERROR) << "Vold exiting";
exit(0);
}