Rollback SendStartupSignal() 51/301551/2
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 20 Nov 2023 02:23:49 +0000 (11:23 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 20 Nov 2023 03:40:54 +0000 (03:40 +0000)
For apps that do not use some aul api, roll back previous patch.

Rollback:
 - https://review.tizen.org/gerrit/c/platform/core/appfw/launchpad/+/301173

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

index db3d09f..06dda58 100644 (file)
@@ -87,6 +87,8 @@ 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>(
@@ -255,6 +257,11 @@ 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 e056353..94b23fa 100644 (file)
@@ -58,6 +58,7 @@ 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);