mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 02:32:54 +08:00
group_kill_children_handler: use nxtask_delete as this is in-kernel
This commit is contained in:
committed by
Xiang Xiao
parent
8a972817e0
commit
a31316cab5
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user