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
@ -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…
Reference in New Issue
Block a user