aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/task_exithook.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 19:15:05 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 19:15:05 +0000
commit80904539e63681b2dca74e3978effb17f0c071b0 (patch)
treeeb49c2f705d2255cc6f05a7ee433aa87472c8a88 /nuttx/sched/task_exithook.c
parente95efd5d2a08dcb62c8c635089e4fe146965db45 (diff)
downloadpx4-firmware-80904539e63681b2dca74e3978effb17f0c071b0.tar.gz
px4-firmware-80904539e63681b2dca74e3978effb17f0c071b0.tar.bz2
px4-firmware-80904539e63681b2dca74e3978effb17f0c071b0.zip
Add logic to keep track of members of a task group
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5563 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_exithook.c')
-rw-r--r--nuttx/sched/task_exithook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/sched/task_exithook.c b/nuttx/sched/task_exithook.c
index 30ce41f71..36836301c 100644
--- a/nuttx/sched/task_exithook.c
+++ b/nuttx/sched/task_exithook.c
@@ -207,7 +207,7 @@ static inline void task_sigchild(FAR _TCB *ptcb, FAR _TCB *ctcb, int status)
*/
#ifdef CONFIG_SCHED_CHILD_STATUS
- if (ctcb->group->tg_crefs == 1)
+ if (ctcb->group->tg_nmembers == 1)
#else
if ((ctcb->flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_TASK)
#endif