Change return value when app is blocking status 76/312076/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 4 Jun 2024 04:34:04 +0000 (13:34 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 4 Jun 2024 04:34:04 +0000 (13:34 +0900)
The implementation of CheckExecutable method changes the value that
returned -ENOENT to -EREJECTED.

Change-Id: Ibb4d999c62f553751b94d38c803328f8f6b46595
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/launch/step_prepare_starting_app.cc

index e34ff317c2df95782370a1fa052a6dfe40a7e4be..0af22ce669685c56eb516e6a2c660ab55a186d6b 100644 (file)
@@ -588,7 +588,7 @@ int StepPrepareStartingApp::CheckExecutable(LaunchContext* context) {
     auto* ignore = _appinfo_get_value(app_info, AIT_IGNORE);
     if (ignore && strcmp(ignore, "true") != 0) {
       _W("Blocking. appid(%s)", context->GetAppId().c_str());
-      return -ENOENT;
+      return -EREJECTED;
     }
 
     _W("Ignore blocking status");