You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/01/31 14:35:48 UTC

[incubator-nuttx] branch revert-5379-kthread created (now 4dafdff)

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a change to branch revert-5379-kthread
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.


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

This branch includes the following new commits:

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

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[incubator-nuttx] 01/01: Revert "sched: Don't duplicate caller file handler when creating kernel thread"

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch revert-5379-kthread
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 4dafdff5feaefb989cedbd78e8f79f345f761cea
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Mon Jan 31 16:35:41 2022 +0200

    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 fed1356..a777c44 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;