From 67cf76c84f534beca30efed988cfd73ae34f2893 Mon Sep 17 00:00:00 2001 From: ql Date: Wed, 14 Jul 2021 07:59:10 +0000 Subject: [PATCH] update services/samgr/native/source/sa_main.cpp. Signed-off-by: NEEN --- services/samgr/native/source/sa_main.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/services/samgr/native/source/sa_main.cpp b/services/samgr/native/source/sa_main.cpp index 79287595..d5550c99 100755 --- a/services/samgr/native/source/sa_main.cpp +++ b/services/samgr/native/source/sa_main.cpp @@ -19,23 +19,9 @@ #include "iservice_registry.h" #include "sam_log.h" #include "system_ability_manager.h" -#include -#include using namespace OHOS; -void startDBinderService(OHOS::sptr manager) { - int time = 15; - while (time-- > 0) { - sleep(1); - } - auto dBinder = manager->GetDBinder(); - if (dBinder != nullptr) { - bool ret = dBinder->StartDBinderService(); - HILOGI("started dbinder service result is %{public}s", ret ? "ok" : "fail"); - } -} - int main(int argc, char *argv[]) { HILOGI("%{public}s called, enter System Ability Manager ", __func__); @@ -45,8 +31,6 @@ int main(int argc, char *argv[]) // Tell IPCThreadState we're the service manager OHOS::sptr serv = manager->AsObject(); IPCSkeleton::SetContextObject(serv); - std::thread th(startDBinderService, manager); - th.detach(); // Create IPCThreadPool and join in. HILOGI("start System Ability Manager Loop"); -- Gitee