return;
}
- _E("pid(%d), is_starting(%s)", app_status->GetPID(),
- app_status->IsStarting() ? "true" : "false");
- int signo = app_status->IsStarting() ? SIGKILL : SIGABRT;
- int ret = kill(app_status->GetPID(), signo);
+ _E("appid(%s), pid(%d), is_starting(%s), delay_count(%d)",
+ app_status->GetAppID().c_str(), app_status->GetPID(),
+ app_status->IsStarting() ? "true" : "false",
+ app_status->GetDelayCount());
+ int ret = kill(app_status->GetPID(), SIGKILL);
if (ret < 0) {
- _W("Failed to send signal(%d), pid(%d), errno(%d)",
- signo, app_status->GetPID(), errno);
+ _W("Failed to send SIGKILL signal, pid(%d), errno(%d)",
+ app_status->GetPID(), errno);
}
_request_flush_pending_request(app_status->GetPID());
return false;
app_status->IncreaseDelayCount();
- if (app_status->GetDelayCount() < 6) {
- _E("App(%s[%d]) hasn't run main loop yet. delay_count(%d)",
- app_status->GetAppID().c_str(), app_status->GetPID(),
- app_status->GetDelayCount());
- return true;
- }
-
- _E("App startup signal has not been received. pid(%d)", app_status->GetPID());
- /*
- Note: When OnStartupTimeout() is called, it may be after the app has
- already been terminated. In this case, if sigkill is called, there is a
- possibility that another process executed with the same pid will be
- killed.
- */
- amd::AppStatusManager::GetInst().Update(app_status->shared_from_this(),
- STATUS_DYING, false, true);
- return false;
+ _E("App(%s[%d]) hasn't run main loop yet. delay_count(%d)",
+ app_status->GetAppID().c_str(), app_status->GetPID(),
+ app_status->GetDelayCount());
+ return true;
}
AppStatusManager& AppStatusManager::GetInst() {