From d48946063a8214c44044d870ea62df9deed94a5e Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 31 Jan 2022 23:03:02 +0800 Subject: [PATCH] Revert "sched: Don't duplicate caller file handler when creating kernel thread" This reverts commit 512676cb06179e033bd55892020c89391b59812b. --- sched/task/task_init.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sched/task/task_init.c b/sched/task/task_init.c index fed1356717..a777c44b6a 100644 --- a/sched/task/task_init.c +++ b/sched/task/task_init.c @@ -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;