DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
/* Then activate the task at the provided priority */
ret = task_activate((FAR struct tcb_s *)tcb);
if (ret < 0)
{
/* nxtask_unit() will undo all of the operations of nxtask_init().
* It also has the side-effect of freeing the TCB which it assumes
* was allocated with one of the kmm_malloc()functions.
*/
nxtask_uninit(tcb);
custom_free(stack);
return ret;
}
return OK;
...