mirror of
https://github.com/apache/nuttx.git
synced 2026-10-14 17:50:15 +00:00
sched/group: skip child wait if here is only self in member list
Skip the child wait if here is only self in member list, since the members of the task group should be 1 if task exit. Fix Regression issue that the task could not terminate normally. Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
2b7742fc08
commit
beb2af8378
1 changed files with 2 additions and 1 deletions
|
|
@ -191,7 +191,8 @@ int group_kill_children(FAR struct tcb_s *tcb)
|
|||
ret = CONFIG_GROUP_KILL_CHILDREN_TIMEOUT_MS;
|
||||
while (1)
|
||||
{
|
||||
if (sq_empty(&tcb->group->tg_members))
|
||||
if (sq_empty(&tcb->group->tg_members) ||
|
||||
sq_is_singular(&tcb->group->tg_members))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue