Merge "Make successful pmon-restart clear failed restarts count"

This commit is contained in:
Zuul 2019-11-21 19:57:31 +00:00 committed by Gerrit Code Review
commit 97d07e0f30
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,3 @@
SRC_DIR="src"
TIS_PATCH_VER=155
TIS_PATCH_VER=156
BUILD_IS_SLOW=5

View File

@ -1142,6 +1142,7 @@ int register_process ( process_config_type * ptr )
ilog ("%s Registered (%d)\n", ptr->process , pid );
ptr->failed = false ;
ptr->registered = true ;
ptr->restarts_cnt = 0 ;
passiveStageChange ( ptr, PMON_STAGE__MANAGE ) ;
if ( ptr->active_monitoring == false )
{
@ -1166,6 +1167,7 @@ int register_process ( process_config_type * ptr )
else
{
ptr->failed = false ;
ptr->restarts_cnt = 0 ;
manage_alarm ( ptr, PMON_CLEAR );
passiveStageChange ( ptr, PMON_STAGE__MANAGE ) ;
}