Remove SendStartupSignal step 73/301173/3
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 10 Nov 2023 04:23:38 +0000 (13:23 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 14 Nov 2023 05:43:09 +0000 (14:43 +0900)
This step is moved to aul lib constuctor.

Change-Id: I35b7f791c3c5c9ed8e33233c7ef88506d10c3cfc
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/launchpad-process-pool/app_executor.cc
src/launchpad-process-pool/app_executor.hh
src/lib/launchpad/step_prepare_execution.cc
src/lib/launchpad/step_prepare_execution.hh

index 06dda58..db3d09f 100644 (file)
@@ -87,8 +87,6 @@ AppExecutor::AppExecutor() : Executor(this) {
       std::bind(&AppExecutor::StepWaitTepMount, this));
   prepare_funcs_.push_back(
       std::bind(&AppExecutor::StepPrepareAppSocketAndIdFile, this));
-  prepare_funcs_.push_back(
-      std::bind(&AppExecutor::StepSendStartupSignal, this));
 
   auto& process_pool_config = Config::GetInst().GetProcessPool();
   process_pool_ = std::unique_ptr<ProcessPool>(
@@ -257,11 +255,6 @@ int AppExecutor::StepPrepareAppSocketAndIdFile() {
   return Util::PrepareAppIdFile(app_info_);
 }
 
-int AppExecutor::StepSendStartupSignal() {
-  Util::SendCmdToAmd(AmdCmd::AppStartupSignal);
-  return 0;
-}
-
 void AppExecutor::CheckAndPrepareDebugging() {
   auto& debug = Debug::GetInst();
   auto& b = app_info_->GetBundle();
index 94b23fa..e056353 100644 (file)
@@ -58,7 +58,6 @@ class AppExecutor : public Executor::Delegator,
   int StepSetEnvironments();
   int StepWaitTepMount();
   int StepPrepareAppSocketAndIdFile();
-  int StepSendStartupSignal();
 
   void CheckAndPrepareDebugging();
   std::vector<std::string> GetLauncherArgv(const std::string& app_type);
index 1c19ce0..248b947 100644 (file)
@@ -61,8 +61,6 @@ StepPrepareExecution::StepPrepareExecution() {
         std::placeholders::_1),
     std::bind(&StepPrepareExecution::PrepareIdFile, this,
         std::placeholders::_1),
-    std::bind(&StepPrepareExecution::SendStartupSignal, this,
-        std::placeholders::_1),
   };
 }
 
@@ -189,11 +187,4 @@ int StepPrepareExecution::PrepareIdFile(AppInfo* app_info) {
   return 0;
 }
 
-int StepPrepareExecution::SendStartupSignal(AppInfo* app_info) {
-  if (Util::SendCmdToAmd(AmdCmd::AppStartupSignal) != 0)
-    _W("Failed to send startup signal");
-
-  return 0;
-}
-
 }  // namespace launchpad
index f95514b..ce69814 100644 (file)
@@ -43,7 +43,6 @@ class StepPrepareExecution {
   int WaitTepMount(AppInfo* app_info);
   int PrepareAppSocket(AppInfo* app_info);
   int PrepareIdFile(AppInfo* app_info);
-  int SendStartupSignal(AppInfo* app_info);
 
  private:
   std::vector<std::function<int(AppInfo*)>> steps_;