mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
sched/posix_spawn: Don't insert name at the begin of argv
since the standard require the caller pass the name explicitly 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. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
+2
-2
@@ -44,8 +44,8 @@ struct tcb_s; /* Forward reference */
|
||||
void nxtask_start(void);
|
||||
int nxtask_setup_scheduler(FAR struct task_tcb_s *tcb, int priority,
|
||||
start_t start, main_t main, uint8_t ttype);
|
||||
int nxtask_setup_arguments(FAR struct task_tcb_s *tcb, FAR const char *name,
|
||||
FAR char * const argv[]);
|
||||
int nxtask_setup_arguments(FAR struct task_tcb_s *tcb,
|
||||
FAR const char *name, FAR char * const argv[]);
|
||||
|
||||
/* Task exit */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user