This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit a31316cab513db9013a41bf0e321e20858c691de
Author: YAMAMOTO Takashi <yamam...@midokura.com>
AuthorDate: Wed Oct 19 19:33:30 2022 +0900

    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)

Reply via email to