This function will use the select() system call to determine when it can read something from the heartbeat FIFO. The period specified by the client application is how long the heartbeat monitor should wait for a heartbeat. The client will generally use two values, a minimum heartbeat resolution and a maximum. The maximum value will be passed to the heartbeat monitor during registration and the minimum value will be the value used by the client for sending heartbeats. It is useful to provide this range so that there is not a race condition of writing and reading the heartbeat that causes a false missed heartbeat, however, it is up to the client to utilize this feature.
The messages logged by this function are :
unregistered PID xxxxx no heartbeat received in xxx milliseconds, recovery PID xxxxx heartbeat received, but invalid. Recovering PID xxxxx -
Parameters:
-
a_reginfo |
The registration information for this application |
-
Returns:
-
SUCCESS if no errors occured and application has either been recovered or unregistered itself.
|