Skip to content

Commit fb6b3dd

Browse files
Donny9xiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent 7b383d0 commit fb6b3dd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

nshlib/nsh_script.c

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ static int nsh_script_redirect(FAR struct nsh_vtbl_s *vtbl,
7474
if (fd > 0)
7575
{
7676
nsh_undirect(vtbl, save);
77-
close(fd);
7877
}
7978
}
8079

0 commit comments

Comments
 (0)