To prevent crash issues, ExecuteEcho() should be called before calling exit()
with the error code.
Change-Id: I1e745cd752bac61381af35d84875bbaf5239c861
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (ret < 0) {
_E("Failed to prepare executing application(%s)",
app_info_->GetAppId().c_str());
+ ExecuteEcho(app_info_->GetAppPath());
exit(ret);
}
char** app_argv = static_cast<char**>(calloc(argv.size() + 1, sizeof(char*)));
if (app_argv == nullptr) {
_E("Out of memory");
+ ExecuteEcho(app_info_->GetAppPath());
exit(-1);
}