summaryrefslogtreecommitdiff
path: root/nuttx/sched/task_create.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-07 19:35:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-01-07 19:35:47 +0000
commit8514e37561246aee4dfbf569b474663aca368913 (patch)
treefca977319643c4fcdbaeecbd38ee572fb9c31ae1 /nuttx/sched/task_create.c
parent488264ef3ea16f95b481417634cdf5f931ebee1f (diff)
downloadpx4-nuttx-8514e37561246aee4dfbf569b474663aca368913.tar.gz
px4-nuttx-8514e37561246aee4dfbf569b474663aca368913.tar.bz2
px4-nuttx-8514e37561246aee4dfbf569b474663aca368913.zip
This initial vfork() check-in was a little pollyanna-ish
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5487 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/task_create.c')
-rw-r--r--nuttx/sched/task_create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/sched/task_create.c b/nuttx/sched/task_create.c
index 4d92c9bb0..801706cbf 100644
--- a/nuttx/sched/task_create.c
+++ b/nuttx/sched/task_create.c
@@ -169,6 +169,8 @@ static int thread_create(const char *name, uint8_t type, int priority,
ret = task_activate(tcb);
if (ret != OK)
{
+ /* The TCB was added to the active task list by task_schedsetup() */
+
dq_rem((FAR dq_entry_t*)tcb, (dq_queue_t*)&g_inactivetasks);
goto errout_with_tcb;
}