Changeset 8424 for trunk/Ohana/src/opihi/pcontrol/CheckHost.c
- Timestamp:
- Aug 18, 2006, 1:44:51 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/CheckHost.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/CheckHost.c
r7917 r8424 5 5 int status; 6 6 IOBuffer buffer; 7 Job *job; 7 8 if (host[0].job != NULL) return (TRUE); 9 10 /* if this host has been marked to be turned off, do that and return */ 11 if (host[0].markoff) { 12 host[0].markoff = FALSE; 13 StopHost (host); 14 OffHost (host); 15 return (TRUE); 16 } 8 17 9 18 InitIOBuffer (&buffer, 0x100); … … 13 22 case 0: 14 23 if (VerboseMode()) gprint (GP_ERR, "host %s is down\n", host[0].hostname); 15 /* if host has a job, job is dead, return to Pending */16 job = (Job *) host[0].job;17 if (job != NULL) {18 UnlinkJobAndHost (job);19 PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);20 }21 24 HarvestHost (host[0].pid); 22 25 PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM); … … 36 39 return (TRUE); 37 40 } 38 gprint (GP_ERR, "programming error: should not reach here (Check Host)\n"); 39 return (FALSE); 41 ABORT ("should not reach here (Check Host)"); 40 42 } 43 44 // if the host has a job, we skip it (down or crash state will be caught elsewhere) 45 // in fact, just touch the IDLE hosts, not the BUSY hosts?
Note:
See TracChangeset
for help on using the changeset viewer.
