IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

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

    r6687 r7917  
    77
    88  if (argc < 2) {
    9     fprintf (stderr, "USAGE: kill (JobID)\n");
     9    gprint (GP_ERR, "USAGE: kill (JobID)\n");
    1010    return (FALSE);
    1111  }
     
    1717    if (!KillLocalJob (job)) {
    1818      job[0].state = JOB_HUNG;
    19       if (VerboseMode()) fprintf (stderr, "child process %d is hung, cannot kill\n", job[0].pid);
     19      if (VerboseMode()) gprint (GP_LOG, "child process %d is hung, cannot kill\n", job[0].pid);
    2020      return (FALSE);
    2121    }
     
    2323    if (!KillControllerJob (job)) {
    2424      job[0].state = JOB_HUNG;
    25       if (VerboseMode()) fprintf (stderr, "child process %d is hung, cannot kill\n", job[0].pid);
     25      if (VerboseMode()) gprint (GP_LOG, "child process %d is hung, cannot kill\n", job[0].pid);
    2626      return (FALSE);
    2727    }
    2828  }   
    2929   
    30   fprintf (stderr, "this function is not yet implemented\n");
     30  gprint (GP_ERR, "this function is not yet implemented\n");
    3131  return (TRUE);
    3232}
Note: See TracChangeset for help on using the changeset viewer.