From fb6b3ddfd9b79a5632618b34cc87de5256e36ec2 Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Fri, 14 Mar 2025 11:09:02 +0800 Subject: [PATCH] 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 --- nshlib/nsh_script.c | 1 - 1 file changed, 1 deletion(-) diff --git a/nshlib/nsh_script.c b/nshlib/nsh_script.c index a049de624..a0db4d6d0 100644 --- a/nshlib/nsh_script.c +++ b/nshlib/nsh_script.c @@ -74,7 +74,6 @@ static int nsh_script_redirect(FAR struct nsh_vtbl_s *vtbl, if (fd > 0) { nsh_undirect(vtbl, save); - close(fd); } }