Revert "sched: Don't duplicate caller file handler when creating kernel thread"
This reverts commit 512676cb06
.
This commit is contained in:
parent
601a0e8a32
commit
d48946063a
@ -105,15 +105,7 @@ int nxtask_init(FAR struct task_tcb_s *tcb, const char *name, int priority,
|
||||
|
||||
/* Associate file descriptors with the new task */
|
||||
|
||||
if (ttype == TCB_FLAG_TTYPE_KERNEL)
|
||||
{
|
||||
ret = group_setupidlefiles(tcb);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = group_setuptaskfiles(tcb);
|
||||
}
|
||||
|
||||
ret = group_setuptaskfiles(tcb);
|
||||
if (ret < 0)
|
||||
{
|
||||
goto errout_with_group;
|
||||
|
Loading…
Reference in New Issue
Block a user