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

since the temporary kernel spawn proxy need duplicate file handler
from caller, please reference the follow source code for more info:
sched/task/task_posixspawn.c
sched/task/task_spawn.c

This reverts commit 5c5f1dec08.
This commit is contained in:
Xiang Xiao
2022-03-01 14:28:15 +08:00
committed by Petro Karashchenko
parent 7b366114c9
commit ddde41018a
3 changed files with 18 additions and 27 deletions
+1 -2
View File
@@ -759,8 +759,7 @@ void files_releaselist(FAR struct filelist *list);
*
****************************************************************************/
int files_duplist(FAR struct filelist *plist,
FAR struct filelist *clist, bool stdio_only);
int files_duplist(FAR struct filelist *plist, FAR struct filelist *clist);
/****************************************************************************
* Name: file_dup