IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 18, 2006, 1:44:51 PM (20 years ago)
Author:
eugene
Message:

successful implementation of the threaded version of pcontrol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/CheckHost.c

    r7917 r8424  
    55  int status;
    66  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  }
    817
    918  InitIOBuffer (&buffer, 0x100);
     
    1322    case 0:
    1423      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       }
    2124      HarvestHost (host[0].pid);
    2225      PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM);
     
    3639      return (TRUE);
    3740  }
    38   gprint (GP_ERR, "programming error: should not reach here (Check Host)\n");
    39   return (FALSE);
     41  ABORT ("should not reach here (Check Host)");
    4042}
     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.