summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_waitpid.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 17:23:38 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 17:23:38 +0000
commitf2933cc4b65836a712f1ab996512999959a8c48a (patch)
treedd7f8afd13defdb90a4a8ffaba352f90efc3ec3a /nuttx/sched/sched_waitpid.c
parent1520663dd52c25496f285eb2e08077318c600759 (diff)
downloadpx4-nuttx-f2933cc4b65836a712f1ab996512999959a8c48a.tar.gz
px4-nuttx-f2933cc4b65836a712f1ab996512999959a8c48a.tar.bz2
px4-nuttx-f2933cc4b65836a712f1ab996512999959a8c48a.zip
Add framework to support task groups
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5562 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_waitpid.c')
-rw-r--r--nuttx/sched/sched_waitpid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/sched/sched_waitpid.c b/nuttx/sched/sched_waitpid.c
index d7484fca9..2d0fe2e48 100644
--- a/nuttx/sched/sched_waitpid.c
+++ b/nuttx/sched/sched_waitpid.c
@@ -312,9 +312,9 @@ pid_t waitpid(pid_t pid, int *stat_loc, int options)
#ifdef CONFIG_SCHED_CHILD_STATUS
/* Does this task retain child status? */
- retains = ((rtcb->flags && TCB_FLAG_NOCLDWAIT) == 0);
+ retains = ((rtcb->group->tg_flags && GROUP_FLAG_NOCLDWAIT) == 0);
- if (rtcb->children == NULL && retains)
+ if (rtcb->group->tg_children == NULL && retains)
{
err = ECHILD;
goto errout_with_errno;
@@ -381,7 +381,7 @@ pid_t waitpid(pid_t pid, int *stat_loc, int options)
* chilren.
*/
- DEBUGASSERT(!retains || rtcb->children);
+ DEBUGASSERT(!retains || rtcb->group->tg_children);
if (retains && (child = task_exitchild(rtcb)) != NULL)
{
/* A child has exited. Apparently we missed the signal.