diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-07 19:35:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-01-07 19:35:47 +0000 |
commit | 8514e37561246aee4dfbf569b474663aca368913 (patch) | |
tree | fca977319643c4fcdbaeecbd38ee572fb9c31ae1 /nuttx/sched/task_create.c | |
parent | 488264ef3ea16f95b481417634cdf5f931ebee1f (diff) | |
download | px4-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.c | 2 |
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; } |