IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2006, 2:13:41 PM (20 years ago)
Author:
eugene
Message:

adding stdout, stderr task commands

File:
1 edited

Legend:

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

    r8129 r9037  
    121121  InitIOBuffer (&job[0].stderr, 0x100);
    122122
     123  job[0].stdout_dump = NULL;
     124  job[0].stderr_dump = NULL;
     125  if (task[0].stdout_dump != NULL) job[0].stdout_dump = strcreate (task[0].stdout_dump);
     126  if (task[0].stderr_dump != NULL) job[0].stderr_dump = strcreate (task[0].stderr_dump);
     127
    123128  jobs[Njobs] = job;
    124129  Njobs ++;
     
    148153  free (job[0].optv);
    149154
     155  if (job[0].stdout_dump != NULL) free (job[0].stdout_dump);
     156  if (job[0].stderr_dump != NULL) free (job[0].stderr_dump);
     157
    150158  FreeIOBuffer (&job[0].stdout);
    151159  FreeIOBuffer (&job[0].stderr);
Note: See TracChangeset for help on using the changeset viewer.