diff --git a/sched/group/group_killchildren.c b/sched/group/group_killchildren.c index e06197eac7..4f35c6a38b 100644 --- a/sched/group/group_killchildren.c +++ b/sched/group/group_killchildren.c @@ -67,8 +67,8 @@ static int group_kill_children_handler(pid_t pid, FAR void *arg) { /* Cancel this thread. This is a forced cancellation. Make sure that * cancellation is not disabled by the task/thread. That bit will - * prevent pthread_cancel() or task_delete() from doing what they need - * to do. + * prevent pthread_cancel() or nxtask_delete() from doing what they + * need to do. */ rtcb = nxsched_get_tcb(pid); @@ -92,7 +92,7 @@ static int group_kill_children_handler(pid_t pid, FAR void *arg) } else { - ret = task_delete(pid); + ret = nxtask_delete(pid); } if (ret < 0)