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_periods.c

    r4451 r4684  
    55  int N, Poll, Exec, Timeout;
    66  float PollValue, ExecValue, TimeoutValue;
    7   char *taskname;
    87  Task *task;
    98
     
    3837  }
    3938
    40   taskname = GetCurrentTask ();
    41   if (taskname == NULL) {
     39  task = GetNewTask ();
     40  if (task == NULL) {
    4241    fprintf (stderr, "ERROR: not defining or running a task\n");
    43     return (FALSE);
    44   }
    45   task = FindTask (taskname);
    46   if (task == NULL) {
    47     fprintf (stderr, "ERROR: current task not found??\n");
    4842    return (FALSE);
    4943  }
Note: See TracChangeset for help on using the changeset viewer.