IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 5, 2005, 7:12:22 AM (21 years ago)
Author:
eugene
Message:

tested / bugfixed sched/pcontrol I/F

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/CheckJobs.c

    r4451 r4452  
    1212  while ((job = NextJob ()) != NULL) {
    1313
    14     /* check for timeout */
    15     if (GetTaskTimer(job[0].start) >= job[0].task[0].timeout_period) {
     14    /* check for timeout - only local jobs timeout here */
     15    if ((job[0].mode == JOB_LOCAL) && (GetTaskTimer(job[0].start) >= job[0].task[0].timeout_period)) {
    1616      fprintf (stderr, "timeout on %s\n", job[0].task[0].name);
    1717      /* run task[0].timeout macro, if it exists */
     
    2929    status = CheckJob (job);
    3030    switch (status) {
     31      case JOB_PENDING:
     32        fprintf (stderr, "job %s (%d) pending\n", job[0].task[0].name, job[0].JobID);
     33        break;
     34
    3135      case JOB_BUSY:
    3236        fprintf (stderr, "job %s (%d) busy\n", job[0].task[0].name, job[0].JobID);
     
    6569
    6670      default:
    67         fprintf (stderr, "unknown exit status\n");
     71        fprintf (stderr, "unknown exit status: %d\n", status);
    6872        /** do something more useful here ?? **/
    6973        break;
Note: See TracChangeset for help on using the changeset viewer.