Revert "sched: Don't duplicate caller file handler when creating kernel thread"

This reverts commit 512676cb06.
This commit is contained in:
Xiang Xiao 2022-01-31 23:03:02 +08:00 committed by Masayuki Ishikawa
parent 601a0e8a32
commit d48946063a

View File

@ -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 */ /* Associate file descriptors with the new task */
if (ttype == TCB_FLAG_TTYPE_KERNEL) ret = group_setuptaskfiles(tcb);
{
ret = group_setupidlefiles(tcb);
}
else
{
ret = group_setuptaskfiles(tcb);
}
if (ret < 0) if (ret < 0)
{ {
goto errout_with_group; goto errout_with_group;