This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit b1d195cb5a83dd8223dfe1a4ac2beda5ffc3aaa4
Author: zhanghongyu <[email protected]>
AuthorDate: Mon Nov 30 15:56:38 2026 +0800

    netutils/iperf: do not print the usage after a successful abort.
    
    "iperf -a <pid>" jumped to the usage label after stopping the instance,
    so a successful abort printed the whole help text, the same output as a
    command-line error.  Return EXIT_SUCCESS instead.
    
    Assisted-by: Kiro:claude-opus-4
    Signed-off-by: zhanghongyu <[email protected]>
---
 netutils/iperf/iperf_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netutils/iperf/iperf_main.c b/netutils/iperf/iperf_main.c
index 505f87021..d9c05f1f5 100644
--- a/netutils/iperf/iperf_main.c
+++ b/netutils/iperf/iperf_main.c
@@ -281,7 +281,7 @@ int main(int argc, FAR char *argv[])
           return EXIT_FAILURE;
         }
 
-      goto out;
+      return EXIT_SUCCESS;
     }
 
   /* Default to TCP when neither UDP nor TCP was requested. */

Reply via email to