mirror of
https://github.com/apache/nuttx.git
synced 2026-08-07 05:27:17 +00:00
Kernel proxy thread should be a kernel thread, not a user task
This commit is contained in:
parent
beb3238f36
commit
eae146d641
1 changed files with 5 additions and 4 deletions
|
|
@ -43,6 +43,7 @@
|
|||
#include <spawn.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/kthread.h>
|
||||
#include <nuttx/binfmt/binfmt.h>
|
||||
|
||||
#include "sched/sched.h"
|
||||
|
|
@ -424,10 +425,10 @@ int posix_spawn(FAR pid_t *pid, FAR const char *path,
|
|||
* task.
|
||||
*/
|
||||
|
||||
proxy = task_create("posix_spawn_proxy", param.sched_priority,
|
||||
CONFIG_POSIX_SPAWN_PROXY_STACKSIZE,
|
||||
(main_t)posix_spawn_proxy,
|
||||
(FAR char * const *)NULL);
|
||||
proxy = kernel_thread("posix_spawn_proxy", param.sched_priority,
|
||||
CONFIG_POSIX_SPAWN_PROXY_STACKSIZE,
|
||||
(main_t)posix_spawn_proxy,
|
||||
(FAR char * const *)NULL);
|
||||
if (proxy < 0)
|
||||
{
|
||||
ret = get_errno();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue