aboutsummaryrefslogtreecommitdiff
path: root/nuttx/sched/task_exithook.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 20:00:37 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-25 20:00:37 +0000
commitfdaa22ed2d565e49983e956bc056f1e0797bd9a9 (patch)
tree81d2bc2ed6e039cb6e9f7228846608b2d7d4fa85 /nuttx/sched/task_exithook.c
parent80904539e63681b2dca74e3978effb17f0c071b0 (diff)
downloadpx4-firmware-fdaa22ed2d565e49983e956bc056f1e0797bd9a9.tar.gz
px4-firmware-fdaa22ed2d565e49983e956bc056f1e0797bd9a9.tar.bz2
px4-firmware-fdaa22ed2d565e49983e956bc056f1e0797bd9a9.zip
Add logic to send SIGCHLD to all members of a task group
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5564 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_exithook.c')
-rw-r--r--nuttx/sched/task_exithook.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/sched/task_exithook.c b/nuttx/sched/task_exithook.c
index 36836301c..2d596978f 100644
--- a/nuttx/sched/task_exithook.c
+++ b/nuttx/sched/task_exithook.c
@@ -259,7 +259,11 @@ static inline void task_sigchild(FAR _TCB *ptcb, FAR _TCB *ctcb, int status)
* can provide the correct si_code value with the signal.
*/
+#ifdef HAVE_GROUP_MEMBERS
+ (void)group_signal(ptcb, &info);
+#else
(void)sig_received(ptcb, &info);
+#endif
}
}
#else