Send Startup signal 97/301397/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 15 Nov 2023 08:48:34 +0000 (17:48 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 15 Nov 2023 08:48:34 +0000 (17:48 +0900)
In the loader case, the process already loaded the aul library.
AppStartupSignal is sent while loading the aul library.
Sending AppStartupSignal is needed in the loader case.

Change-Id: I4968fe72992f24d6bf19c957f43967080602f5f0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/launchpad/step_prepare_execution.cc
src/lib/launchpad/step_prepare_execution.hh

index 248b947..1c19ce0 100644 (file)
@@ -61,6 +61,8 @@ StepPrepareExecution::StepPrepareExecution() {
         std::placeholders::_1),
     std::bind(&StepPrepareExecution::PrepareIdFile, this,
         std::placeholders::_1),
+    std::bind(&StepPrepareExecution::SendStartupSignal, this,
+        std::placeholders::_1),
   };
 }
 
@@ -187,4 +189,11 @@ 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 ce69814..f95514b 100644 (file)
@@ -43,6 +43,7 @@ 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_;