hartmannathan commented on a change in pull request #791: URL: https://github.com/apache/incubator-nuttx-apps/pull/791#discussion_r662393302
########## File path: system/system/system.c ########## @@ -137,12 +137,8 @@ int system(FAR const char *cmd) errcode = posix_spawn(&pid, argv[0], NULL, &attr, argv, (FAR char * const *)NULL); #else - pid = task_spawn("system", nsh_system, NULL, &attr, - argv + 1, (FAR char * const *)NULL); - if (pid < 0) - { - errcode = -pid; - } + errcode = task_spawn(&pid, "system", nsh_system, NULL, &attr, + argv, (FAR char * const *)NULL); Review comment: Same comment here. -- 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