Loading media/libaudiohal/HalDeathHandlerHidl.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -48,12 +48,13 @@ void HalDeathHandler::unregisterAtExitHandler(void* cookie) { void HalDeathHandler::serviceDied(uint64_t /*cookie*/, const wp<IBase>& /*who*/) { // No matter which of the service objects has died, // we need to run all the registered handlers and crash our process. // we need to run all the registered handlers and exit. std::lock_guard<std::mutex> guard(mHandlersLock); for (const auto& handler : mHandlers) { handler.second(); } LOG_ALWAYS_FATAL("HAL server crashed, need to restart"); ALOGE("HAL server crashed, audio server is restarting"); exit(1); } } // namespace android Loading
media/libaudiohal/HalDeathHandlerHidl.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -48,12 +48,13 @@ void HalDeathHandler::unregisterAtExitHandler(void* cookie) { void HalDeathHandler::serviceDied(uint64_t /*cookie*/, const wp<IBase>& /*who*/) { // No matter which of the service objects has died, // we need to run all the registered handlers and crash our process. // we need to run all the registered handlers and exit. std::lock_guard<std::mutex> guard(mHandlersLock); for (const auto& handler : mHandlers) { handler.second(); } LOG_ALWAYS_FATAL("HAL server crashed, need to restart"); ALOGE("HAL server crashed, audio server is restarting"); exit(1); } } // namespace android