mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Revert "Squashed commit of the following:"
This reverts commit 25b92edd9f.
This commit is contained in:
parent
cd62ab5398
commit
2f982e9c77
326 changed files with 569 additions and 561 deletions
|
|
@ -183,19 +183,9 @@ int exec_builtin(FAR const char *appname, FAR char * const *argv,
|
|||
|
||||
/* Start the built-in */
|
||||
|
||||
if (builtin->main)
|
||||
{
|
||||
ret = task_spawn(&pid, builtin->name, builtin->main, &file_actions,
|
||||
&attr, (argv) ? &argv[1] : (FAR char * const *)NULL,
|
||||
(FAR char * const *)NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = posix_spawn(&pid, builtin->name, &file_actions,
|
||||
&attr, (argv) ? &argv[1] : (FAR char * const *)NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
ret = task_spawn(&pid, builtin->name, builtin->main, &file_actions,
|
||||
&attr, (argv) ? &argv[1] : (FAR char * const *)NULL,
|
||||
(FAR char * const *)NULL);
|
||||
if (ret != 0)
|
||||
{
|
||||
serr("ERROR: task_spawn failed: %d\n", ret);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue