From a31316cab513db9013a41bf0e321e20858c691de Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 19 Oct 2022 19:33:30 +0900 Subject: [PATCH] group_kill_children_handler: use nxtask_delete as this is in-kernel --- sched/group/group_killchildren.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)