Merge "servicedispatcher: pause until killed."
diff --git a/libs/binder/servicedispatcher.cpp b/libs/binder/servicedispatcher.cpp
index 0c677a8..af79126 100644
--- a/libs/binder/servicedispatcher.cpp
+++ b/libs/binder/servicedispatcher.cpp
@@ -85,7 +85,11 @@
LOG(INFO) << "Finish setting up RPC on service " << name << " on port" << port;
std::cout << port << std::endl;
- return EX_OK;
+
+ TEMP_FAILURE_RETRY(pause());
+
+ PLOG(FATAL) << "TEMP_FAILURE_RETRY(pause()) exits; this should not happen!";
+ __builtin_unreachable();
}
// Log to logd. For warning and more severe messages, also log to stderr.