RGM은 Update 메소드를 호출하여 실행 중인 자원에 해당 등록 정보가 변경된 것을 알립니다. xfnts 데이터 서비스에 대한 변경할 수 있는 등록 정보만 오류 모니터와 관련됩니다. 따라서 등록 정보가 업데이트될 때마다 xfnts_update 메소드는 scds_pmf_restart_fm()을 호출하여 오류 모니터를 재시작합니다.
/* check if the Fault monitor is already running and if so stop
* and restart it. The second parameter to scds_pmf_restart_fm()
* uniquely identifies the instance of the fault monitor that needs
* to be restarted.
*/
scds_syslog(LOG_INFO, "Restarting the fault monitor.");
result = scds_pmf_restart_fm(scds_handle, 0);
if (result != SCHA_ERR_NOERR) {
scds_syslog(LOG_ERR,
"Failed to restart fault monitor.");
/* Free up all the memory allocated by scds_initialize */
scds_close(&scds_handle);
return (1);
}
scds_syslog(LOG_INFO,
"Completed successfully.");
scds_pmf_restart_fm()의 두 번째 인자는 여러 인스턴스가 있을 경우 재시작할 오류 모니터의 인스턴스를 고유하게 식별합니다. 이 예의 값 0은 오류 모니터의 인스턴스가 한 개밖에 없음을 나타냅니다.