mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 03:43:34 +08:00
This initial vfork() check-in was a little pollyanna-ish
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5487 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user