IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 3, 2005, 5:50:08 PM (21 years ago)
Author:
eugene
Message:

psched / pscontrol / pclient dev work

File:
1 edited

Legend:

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

    r4697 r4705  
    2626      case JOB_CRASH:
    2727        /* run task[0].crash macro, if it exists */
    28         /* set the stdout and stderr variables with job.stdout, job.stderr */
    29         /* XXX this will break on 0 values in output streams */
     28        /* push output buffer data to the stdout and stderr queues */
    3029        if (VerboseMode()) fprintf (stderr, "job %s (%d) crash\n", job[0].task[0].name, job[0].JobID);
    3130        PushNamedQueue ("stdout", job[0].stdout.buffer);
    3231        PushNamedQueue ("stderr", job[0].stderr.buffer);
     32        /* XXX this will break on 0 values in output streams */
     33        /* perhaps define PushNamedQueueBuffer */
    3334        if (job[0].task[0].crash != NULL) {
    3435          exec_loop (job[0].task[0].crash);
     
    4344        PushNamedQueue ("stderr", job[0].stderr.buffer);
    4445        /* run corresponding task[0].exit macro, if it exists */
    45         macro = job[0].task[0].def;
     46        macro = job[0].task[0].defexit;
    4647        for (i = 0; i < job[0].task[0].Nexit; i++) {
    4748          if (job[0].exit_status == atoi(job[0].task[0].exit[i][0].name)) {
Note: See TracChangeset for help on using the changeset viewer.