IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 12, 2005, 9:34:34 AM (21 years ago)
Author:
eugene
Message:

pcontrol dev

File:
1 edited

Legend:

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

    r3187 r3203  
    33int CheckHost (Host *host) {
    44 
    5   int i, status;
     5  int i, N, status;
    66  IOBuffer buffer;
    77  Job *job;
     
    1515
    1616      /* if host has a job, job is dead, push to Pending */
    17       if (host[0].status == PCONTROL_HOST_BUSY) {
     17      if (host[0].stack == PCONTROL_HOST_BUSY) {
    1818        job = host[0].job;
    1919        N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY);
     
    2424        job[0].host = NULL; /* unlink host & job */
    2525        job = GetJob (PCONTROL_JOB_BUSY, N);
    26         PutJob (job, PCONTROL_JOB_PENDING, QUEUE_BOTTOM);
     26        PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
    2727      }
    2828      host[0].job = NULL;
    29       PutHost (host, PCONTROL_HOST_DOWN, QUEUE_BOTTOM);
    30       FreeBuffer (&buffer);
     29      PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM);
     30      FreeIOBuffer (&buffer);
    3131      return (FALSE);
    3232     
     
    3434      fprintf (stderr, "host %s is not responding\n", host[0].hostname);
    3535      /*** do we mark this in some way (HUNG) ? ***/
    36       PutHost (host, host[0].status, QUEUE_BOTTOM);
    37       FreeBuffer (&buffer);
     36      PutHost (host, host[0].stack, STACK_BOTTOM);
     37      FreeIOBuffer (&buffer);
    3838      return (FALSE);
    3939
    4040    default:
    4141      fprintf (stderr, "host %s is alive\n", host[0].hostname);
    42       PutHost (host, host[0].status, QUEUE_BOTTOM);
    43       FreeBuffer (&buffer);
     42      PutHost (host, host[0].stack, STACK_BOTTOM);
     43      FreeIOBuffer (&buffer);
    4444      return (TRUE);
    4545  }
Note: See TracChangeset for help on using the changeset viewer.