group_kill_children_handler: use nxtask_delete as this is in-kernel

This commit is contained in:
YAMAMOTO Takashi 2022-10-19 19:33:30 +09:00 committed by Xiang Xiao
parent 8a972817e0
commit a31316cab5
1 changed files with 3 additions and 3 deletions

View File

@ -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)