From f88a9fe446f61e6d06632376392d1002700a49a9 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Sun, 19 Mar 2017 14:38:20 -0700 Subject: [PATCH] configstore: respect service registration status. Bug: 36424561 Test: pass Change-Id: I546af49d589e455b6dd97ca45d2330aa82059a4a --- configstore/1.0/default/service.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configstore/1.0/default/service.cpp b/configstore/1.0/default/service.cpp index caec0ba463..cb04215e84 100644 --- a/configstore/1.0/default/service.cpp +++ b/configstore/1.0/default/service.cpp @@ -24,10 +24,18 @@ using android::hardware::configureRpcThreadpool; using android::hardware::registerPassthroughServiceImplementation; using android::hardware::joinRpcThreadpool; +using android::status_t; +using android::OK; + int main() { // TODO(b/34857894): tune the max thread count. configureRpcThreadpool(10, true); - registerPassthroughServiceImplementation(); + + status_t status; + + status = registerPassthroughServiceImplementation(); + LOG_ALWAYS_FATAL_IF(status != OK, "Could not register ISurfaceFlingerConfigs"); + // other interface registration comes here joinRpcThreadpool(); return 0;