IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 13, 2005, 10:30:13 AM (21 years ago)
Author:
eugene
Message:

working on speed issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pclient/job.c

    r4691 r4762  
    88  if (argc < 2) {
    99    fprintf (stderr, "USAGE: job (arg0) (arg1) ... (argN)\n");
    10     fprintf (stdout, "STATUS %d\n", -2);
     10    fprintf (GetOutfile(), "STATUS %d\n", -2);
    1111    return (FALSE);
    1212  }
     
    1414  if (ChildStatus != PCLIENT_NONE) {
    1515    fprintf (stderr, "need to clear existing child\n");
    16     fprintf (stdout, "STATUS %d\n", -3);
     16    fprintf (GetOutfile(), "STATUS %d\n", -3);
    1717    return (FALSE);
    1818  }
     
    3131  pid = fork ();
    3232  if (!pid) { /* must be child process */
    33     fprintf (stderr, "starting child process %s...\n", targv[0]);
     33    /* fprintf (stderr, "starting child process %s...\n", targv[0]); */
    3434
    3535    /* close the other ends of the pipes */
     
    7373  ChildPID = pid;
    7474
    75   fprintf (stdout, "STATUS %d\n", ChildPID);
     75  fprintf (GetOutfile(), "STATUS %d\n", ChildPID);
    7676  return (TRUE);
    7777
     
    8585  if (child_stderr_fd[1] != 0) close (child_stderr_fd[1]);
    8686
    87   fprintf (stdout, "STATUS %d\n", -1);
     87  fprintf (GetOutfile(), "STATUS %d\n", -1);
    8888  return (FALSE);
    8989}
Note: See TracChangeset for help on using the changeset viewer.