Revert "sched/posix_spawn: Don't insert name at the begin of argv"

This reverts commit 032086870d.
This commit is contained in:
Xiang Xiao
2021-06-15 13:28:40 +08:00
committed by patacongo
parent ca0f2bdb95
commit 90f71bd017
7 changed files with 67 additions and 78 deletions

View File

@@ -168,7 +168,7 @@ int exec_module(FAR const struct binary_s *binp,
/* Initialize the task */
ret = nxtask_init(tcb, false, filename, binp->priority,
ret = nxtask_init(tcb, filename, binp->priority,
NULL, binp->stacksize, binp->entrypt, argv);
binfmt_freeargv(argv);
if (ret < 0)