merge in pi-release history after reset to master
diff --git a/ServiceManager.cpp b/ServiceManager.cpp
index f57924e..3e2353e 100644
--- a/ServiceManager.cpp
+++ b/ServiceManager.cpp
@@ -10,6 +10,7 @@
#include <hidl/HidlTransportSupport.h>
#include <regex>
#include <sstream>
+#include <thread>
using android::hardware::IPCThreadState;
@@ -165,11 +166,13 @@
static void tryStartService(const std::string& fqName, const std::string& name) {
using ::android::base::SetProperty;
- bool success = SetProperty("ctl.interface_start", fqName + "/" + name);
+ std::thread([=] {
+ bool success = SetProperty("ctl.interface_start", fqName + "/" + name);
- if (!success) {
- LOG(ERROR) << "Failed to set property for starting " << fqName << "/" << name;
- }
+ if (!success) {
+ LOG(ERROR) << "Failed to set property for starting " << fqName << "/" << name;
+ }
+ }).detach();
}
// Methods from ::android::hidl::manager::V1_0::IServiceManager follow.