fs/fs_files: restore fd before calling fdlist_install
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
224dc48a95
commit
7ecfbcdaab
1 changed files with 4 additions and 0 deletions
|
|
@ -800,6 +800,10 @@ int fdlist_copy(FAR struct fdlist *plist, FAR struct fdlist *clist,
|
|||
file_put(filep);
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_FDCHECK
|
||||
fd = fdcheck_restore(fd);
|
||||
#endif
|
||||
}
|
||||
else if (fcloexec)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue