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/task_command.c

    r4451 r4684  
    44
    55  int i;
    6   char *taskname;
    76  Task *task;
    87
     
    1312  }
    1413
    15   taskname = GetCurrentTask ();
    16   if (taskname == NULL) {
     14  task = GetNewTask ();
     15  if (task == NULL) {
    1716    fprintf (stderr, "ERROR: not defining or running a task\n");
    18     return (FALSE);
    19   }
    20   task = FindTask (taskname);
    21   if (task == NULL) {
    22     fprintf (stderr, "ERROR: current task not found??\n");
    2317    return (FALSE);
    2418  }
Note: See TracChangeset for help on using the changeset viewer.