|
@@ -313,8 +313,7 @@ void CHealthManagerEntity::OnCheckTimeTimeout()
|
|
|
{
|
|
|
if (m_pfUpgradeRestart != NULL)
|
|
|
{
|
|
|
- eErr = m_pfUpgradeRestart(3, 0);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("healthmanager say idle,so tell the guardian.%d", eErr);
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("healthmanager say idle,so tell the guardian.%d", m_pfUpgradeRestart(3, 0));
|
|
|
}
|
|
|
}
|
|
|
CSimpleStringA csRunCfgPath(""), csStartTime("");
|
|
@@ -348,7 +347,7 @@ void CHealthManagerEntity::OnCheckTimeTimeout()
|
|
|
if (m_pfShake != NULL)
|
|
|
{
|
|
|
WorkStateEnum eShake;
|
|
|
- ErrorCodeEnum eErrShake = m_pfShake(eShake);
|
|
|
+ m_pfShake(eShake);
|
|
|
m_ullGuardShakeCount++;
|
|
|
}
|
|
|
if (m_ullGuardShakeCount == 2)//in the next timeout(1 minute later than before,to restart guardian)
|
|
@@ -382,8 +381,7 @@ void CHealthManagerEntity::OnCheckTimeTimeout()
|
|
|
{
|
|
|
if (m_pfUpgradeRestart != NULL)
|
|
|
{
|
|
|
- eErr = m_pfUpgradeRestart(5, 0);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("auth suc,so tell the guardian.%d", eErr);
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("auth suc,so tell the guardian.%d", m_pfUpgradeRestart(5, 0));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -398,8 +396,7 @@ void CHealthManagerEntity::OnCheckTimeTimeout()
|
|
|
if (m_pfShake != NULL)
|
|
|
{
|
|
|
WorkStateEnum eShake;
|
|
|
- eErr = m_pfShake(eShake);
|
|
|
- DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("accessauth told me not to restart framework,so that it can have time to retry.%d", eErr);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("accessauth told me not to restart framework,so that it can have time to retry.%d", m_pfShake(eShake));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -887,14 +884,14 @@ bool CHealthManagerEntity::DoRestart()
|
|
|
if (m_bNeedGuardian)
|
|
|
{
|
|
|
DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM)("to tell guardian framework is starting.");
|
|
|
- eErr = m_pfUpgradeRestart(4, 0);//tell guardian framework is starting...oilyang 20150514
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM)("feedback of framework is starting.%d", eErr);
|
|
|
+ //tell guardian framework is starting...oilyang 20150514
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM)("feedback of framework is starting.%d", m_pfUpgradeRestart(4, 0));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM)("need Upgrade guardian only");
|
|
|
- eErr = m_pfUpgradeRestart(6, 0);//tell guardian framework we need Upgrade !!!Only!!! oilyang@20211221
|
|
|
- DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM)("feedback of need Upgrade guardian only.%d", eErr);
|
|
|
+ //tell guardian framework we need Upgrade !!!Only!!! oilyang@20211221
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO,LOG_TYPE_SYSTEM)("feedback of need Upgrade guardian only.%d", m_pfUpgradeRestart(6, 0));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1418,9 +1415,8 @@ void CHealthManagerEntity::WarnAndRestartFunc(RebootTriggerEnum eTrigger, Reboot
|
|
|
if (CheckGuardianIsRun(true) > 0)
|
|
|
{
|
|
|
ErrorCodeEnum eErr = Error_Unexpect;
|
|
|
- eErr = m_pfUpgradeRestart(1, 0);
|
|
|
//Dbg("to tell guardian framework is restarting.%d",eErr);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("to tell guardian framework is restarting.%d", eErr);
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("to tell guardian framework is restarting.%d", m_pfUpgradeRestart(1, 0));
|
|
|
}
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("framework shutdown in restart task");
|
|
|
}
|