Changeset 3203 for trunk/Ohana/src/opihi/pcontrol/CheckHost.c
- Timestamp:
- Feb 12, 2005, 9:34:34 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckHost.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckHost.c
r3187 r3203 3 3 int CheckHost (Host *host) { 4 4 5 int i, status;5 int i, N, status; 6 6 IOBuffer buffer; 7 7 Job *job; … … 15 15 16 16 /* if host has a job, job is dead, push to Pending */ 17 if (host[0].sta tus== PCONTROL_HOST_BUSY) {17 if (host[0].stack == PCONTROL_HOST_BUSY) { 18 18 job = host[0].job; 19 19 N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY); … … 24 24 job[0].host = NULL; /* unlink host & job */ 25 25 job = GetJob (PCONTROL_JOB_BUSY, N); 26 PutJob (job, PCONTROL_JOB_PENDING, QUEUE_BOTTOM);26 PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM); 27 27 } 28 28 host[0].job = NULL; 29 PutHost (host, PCONTROL_HOST_DOWN, QUEUE_BOTTOM);30 Free Buffer (&buffer);29 PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM); 30 FreeIOBuffer (&buffer); 31 31 return (FALSE); 32 32 … … 34 34 fprintf (stderr, "host %s is not responding\n", host[0].hostname); 35 35 /*** do we mark this in some way (HUNG) ? ***/ 36 PutHost (host, host[0].sta tus, QUEUE_BOTTOM);37 Free Buffer (&buffer);36 PutHost (host, host[0].stack, STACK_BOTTOM); 37 FreeIOBuffer (&buffer); 38 38 return (FALSE); 39 39 40 40 default: 41 41 fprintf (stderr, "host %s is alive\n", host[0].hostname); 42 PutHost (host, host[0].sta tus, QUEUE_BOTTOM);43 Free Buffer (&buffer);42 PutHost (host, host[0].stack, STACK_BOTTOM); 43 FreeIOBuffer (&buffer); 44 44 return (TRUE); 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
