IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2005, 8:04:11 AM (21 years ago)
Author:
eugene
Message:

task/job list cleanup, fixing kill/delete

File:
1 edited

Legend:

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

    r4552 r4684  
    1212  JobID = atoi (argv[1]);
    1313
    14   /* not yet implemented */
     14  job = FindJob (JobID);
    1515
     16  if (job[0].mode == JOB_LOCAL) {
     17    if (!KillLocalJob (job)) {
     18      job[0].state = JOB_HUNG;
     19      if (VerboseMode()) fprintf (stderr, "child process %d is hung, cannot kill\n", job[0].pid);
     20      return (FALSE);
     21    }
     22  } else {
     23    if (!KillControllerJob (job)) {
     24      job[0].state = JOB_HUNG;
     25      if (VerboseMode()) fprintf (stderr, "child process %d is hung, cannot kill\n", job[0].pid);
     26      return (FALSE);
     27    }
     28  }   
     29   
    1630  fprintf (stderr, "this function is not yet implemented\n");
    1731  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.