aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/task_setup.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
commite95efd5d2a08dcb62c8c635089e4fe146965db45 (patch)
treedd7f8afd13defdb90a4a8ffaba352f90efc3ec3a /nuttx/sched/task_setup.c
parentb6472b58dcce32d4ab2051f13cef89a6f0296c28 (diff)
downloadpx4-firmware-e95efd5d2a08dcb62c8c635089e4fe146965db45.tar.gz
px4-firmware-e95efd5d2a08dcb62c8c635089e4fe146965db45.tar.bz2
px4-firmware-e95efd5d2a08dcb62c8c635089e4fe146965db45.zip
Add framework to support task groups
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5562 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_setup.c')
-rw-r--r--nuttx/sched/task_setup.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/nuttx/sched/task_setup.c b/nuttx/sched/task_setup.c
index 66c948cfd..7675c7481 100644
--- a/nuttx/sched/task_setup.c
+++ b/nuttx/sched/task_setup.c
@@ -1,7 +1,7 @@
/****************************************************************************
* sched/task_setup.c
*
- * Copyright (C) 2007-2012 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2013 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@@ -179,13 +179,11 @@ static inline void task_saveparent(FAR _TCB *tcb, uint8_t ttype)
tcb->parent = rtcb->pid;
#ifdef CONFIG_SCHED_CHILD_STATUS
- /* Exit status only needs to be retained for the case of tasks, however.
- * Tasks can also suppress retention of their child status by applying
- * the SA_NOCLDWAIT flag with sigaction()/
+ /* Tasks can also suppress retention of their child status by applying
+ * the SA_NOCLDWAIT flag with sigaction().
*/
- if (ttype == TCB_FLAG_TTYPE_TASK &&
- (rtcb->flags && TCB_FLAG_NOCLDWAIT) == 0)
+ if ((rtcb->group->tg_flags && GROUP_FLAG_NOCLDWAIT) == 0)
{
FAR struct child_status_s *child;