From e4e8d89a7555e387b247a8f7c54e92adc64ff496 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Tue, 25 Apr 2023 02:38:10 +0000 Subject: [PATCH] Add missing function call To prevent crash issues, ExecuteEcho() should be called before calling exit() with the error code. Change-Id: I1e745cd752bac61381af35d84875bbaf5239c861 Signed-off-by: Hwankyu Jhun --- src/launchpad-process-pool/app_executor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launchpad-process-pool/app_executor.cc b/src/launchpad-process-pool/app_executor.cc index 91f6b32..fb65f07 100644 --- a/src/launchpad-process-pool/app_executor.cc +++ b/src/launchpad-process-pool/app_executor.cc @@ -126,6 +126,7 @@ void AppExecutor::OnExecution() { if (ret < 0) { _E("Failed to prepare executing application(%s)", app_info_->GetAppId().c_str()); + ExecuteEcho(app_info_->GetAppPath()); exit(ret); } @@ -134,6 +135,7 @@ void AppExecutor::OnExecution() { char** app_argv = static_cast(calloc(argv.size() + 1, sizeof(char*))); if (app_argv == nullptr) { _E("Out of memory"); + ExecuteEcho(app_info_->GetAppPath()); exit(-1); } -- 2.7.4