diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-04 22:38:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-02-04 22:38:59 +0000 |
commit | 70121d6ca8fd0e48f35b3ccb52e3b960e64df6c2 (patch) | |
tree | 8f6f8829ea4e5a7f5bd1a48503aa7308bbf90e4e /nuttx/sched/task_create.c | |
parent | f34406ac488b6d5fb2f50f026e1964fb33ae649d (diff) | |
download | px4-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.c | 4 |
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; |