IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 4, 2005, 5:35:47 PM (21 years ago)
Author:
eugene
Message:

substantial dev work on scheduler/pcontrol/pclient

File:
1 edited

Legend:

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

    r3212 r4450  
    1616      /* if host has a job, job is dead, push to Pending */
    1717      if (host[0].stack == PCONTROL_HOST_BUSY) {
    18         job = host[0].job;
    19         N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY);
    20         if (N < 0) {
    21           fprintf (stderr, "error: job is not found in BUSY list\n");
    22           exit (2);
     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);
    2327        }
    24         job[0].host = NULL; /* unlink host & job */
    25         job = GetJob (PCONTROL_JOB_BUSY, N);
    26         PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
    2728      }
    2829      host[0].job = NULL;
Note: See TracChangeset for help on using the changeset viewer.