JianyuWang0623 commented on code in PR #3003:
URL: https://github.com/apache/nuttx-apps/pull/3003#discussion_r1964834854


##########
system/fastboot/fastboot.c:
##########
@@ -770,6 +784,41 @@ static void fastboot_filedump(FAR struct fastboot_ctx_s 
*context,
   fastboot_okay(context, "");
 }
 
+#ifdef CONFIG_SYSTEM_FASTBOOTD_SH
+static void fastboot_sh(FAR struct fastboot_ctx_s *context,
+                        FAR const char *arg)
+{
+  int ret;
+
+  ret = system(arg);
+  if (ret < 0)
+    {
+      fastboot_fail(context, "Create child process failed %d error %d",
+                    ret, errno);
+      return;
+    }
+  else if (ret == 0 && arg == NULL)

Review Comment:
   @xiaoxiang781216  Need kept maybe.
   If command is NULL, then a nonzero value if a shell is available, or 0 if no 
shell is available. -- SYSTEM(3)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to