xiaoxiang781216 opened a new issue #3898:
URL: https://github.com/apache/incubator-nuttx/issues/3898


   From 
https://pubs.opengroup.org/onlinepubs/009695399/functions/posix_spawn.html:
   ```
   The argument argv is an array of character pointers to null-terminated 
strings. The last member of this array shall be a null pointer and is not 
counted in argc. These strings constitute the argument list available to the 
new process image. The value in argv[0] should point to a filename that is 
associated with the process image being started by the posix_spawn() or 
posix_spawnp() function.
   ```
   argv[0] should always point to the filename, but NuttX assume argv[0] point 
to the first argument and insert filename automatically:
   
https://github.com/apache/incubator-nuttx/blob/master/sched/task/task_setup.c#L572-L579


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to