IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 14, 2005, 10:33:53 AM (21 years ago)
Author:
eugene
Message:

cleanup up communications for speed

File:
1 edited

Legend:

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

    r4762 r4763  
    1313    case 0:
    1414      if (VerboseMode()) fprintf (stderr, "host %s is down\n", host[0].hostname);
    15 
    16       /* if host has a job, job is dead, push to Pending */
    17       if (host[0].stack == PCONTROL_HOST_BUSY) {
    18         job = (Job *) host[0].job;
    19         if (job != NULL) {
    20           N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY);
    21           if (N < 0) {
    22             fprintf (stderr, "programming error: job is not found in BUSY list\n");
    23             exit (2);
    24           }
    25           job[0].host = NULL; /* unlink host & job */
    26           PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
    27         }
     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);
    2820      }
    29       host[0].job = NULL;
     21      HarvestHost (host[0].pid);
    3022      PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM);
    3123      FreeIOBuffer (&buffer);
Note: See TracChangeset for help on using the changeset viewer.