mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-23 18:09:52 +08:00
nsh/script: remove double close for output fd
the output fd had been closed in nsh_closeifnotclosed, so remove double close. Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -74,7 +74,6 @@ static int nsh_script_redirect(FAR struct nsh_vtbl_s *vtbl,
|
|||||||
if (fd > 0)
|
if (fd > 0)
|
||||||
{
|
{
|
||||||
nsh_undirect(vtbl, save);
|
nsh_undirect(vtbl, save);
|
||||||
close(fd);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user