Professional Documents
Culture Documents
While 1
If t >= lastT+MINUTE
Printf->checking
ssystem->stateif == systemAlive
ssystem->state == systemDying
systemExiting
Dead
systemInvalidated
SystemDead
expect ed
systemL imbo
rpcExpected
System Dead
System limbo
SystemInvalidate
PINGS
MainPing
systemAliv e
0 => not rebooted 1 => rebooted -1 => alive but does not appear to have gone down
SystemSelect
This routine scans all of the sockets connecting to all of the client Which ==3
*/
if which_ssystem != NULL
setjmp(mainEnv)
argSockLocal
Read a line
PacketReceiv e>0
manualreboot == 1
SystemDying
systemAlive
SYSHA LT
SYSBO OT
SYSPA NIC
aborti ng
rpcDynamic Device
Mainphase