IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2006, 10:45:22 AM (20 years ago)
Author:
eugene
Message:

better solution for hung hosts

File:
1 edited

Legend:

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

    r10659 r10661  
    4040      // we need the job start to return a valid Job ID,
    4141      // give up on jobs which don't get started.
     42      // XXX we are sensitive here to the time it takes pclient
     43      // to fork the job.  if this is slow, the client may appear to hang.
    4244      gprint (GP_ERR, "host %s is not responding (StartJob)\n", host[0].hostname);
    4345      if (VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
    44       goto failure;
     46
     47      // unlink host & job
     48      job[0].host = NULL;
     49      host[0].job = NULL;
     50      PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
     51      PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
     52      FreeIOBuffer (&buffer);
     53      return (FALSE);
    4554
    4655    case PCLIENT_GOOD:
Note: See TracChangeset for help on using the changeset viewer.