IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9278


Ignore:
Timestamp:
Oct 4, 2006, 4:32:35 PM (20 years ago)
Author:
eugene
Message:

flushing stderr, stdout when done with job assessment

File:
1 edited

Legend:

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

    r9037 r9278  
    88  int i, status;
    99  char varname[64];
     10  Queue *queue;
    1011
    1112  /** test all jobs: ready to test?  finished? **/
     
    99100        }
    100101
     102        /* flush the stderr and stdout queues */
     103        queue = FindQueue ("stdout");
     104        if (queue) InitQueue (queue);
     105        queue = FindQueue ("stderr");
     106        if (queue) InitQueue (queue);
     107
    101108        DeleteJob (job);
    102109        continue;
     
    115122      if (GetTaskTimer(job[0].start) < job[0].task[0].timeout_period) continue;
    116123      if (VerboseMode()) gprint (GP_LOG, "timeout on %s\n", job[0].task[0].name);
     124
     125      // XXX harvest STDERR and STDOUT from timeout job (should be available...)
     126      // XXX add this to controller as well
    117127
    118128      /* update the timeout counter */
Note: See TracChangeset for help on using the changeset viewer.