summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_create.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-04 22:38:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-04 22:38:59 +0000
commit70121d6ca8fd0e48f35b3ccb52e3b960e64df6c2 (patch)
tree8f6f8829ea4e5a7f5bd1a48503aa7308bbf90e4e /nuttx/sched/task_create.c
parentf34406ac488b6d5fb2f50f026e1964fb33ae649d (diff)
downloadpx4-nuttx-70121d6ca8fd0e48f35b3ccb52e3b960e64df6c2.tar.gz
px4-nuttx-70121d6ca8fd0e48f35b3ccb52e3b960e64df6c2.tar.bz2
px4-nuttx-70121d6ca8fd0e48f35b3ccb52e3b960e64df6c2.zip
Bugfix: whenever a thread it must report the PID of the main task (even it is not the main task) with SIGCHLD
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5612 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_create.c')
-rw-r--r--nuttx/sched/task_create.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c
index 30fc1354f..15bdebdb9 100644
--- a/nuttx/sched/task_create.c
+++ b/nuttx/sched/task_create.c
@@ -123,7 +123,7 @@ static int thread_create(const char *name, uint8_t ttype, int priority,
/* Allocate a new task group */
#ifdef HAVE_TASK_GROUP
- ret = group_allocate((FAR struct tcb_s *)tcb);
+ ret = group_allocate(tcb);
if (ret < 0)
{
errcode = -ret;
@@ -169,7 +169,7 @@ static int thread_create(const char *name, uint8_t ttype, int priority,
/* Now we have enough in place that we can join the group */
#ifdef HAVE_TASK_GROUP
- ret = group_initialize((FAR struct tcb_s *)tcb);
+ ret = group_initialize(tcb);
if (ret < 0)
{
errcode = -ret;