mirror of
https://github.com/apache/nuttx.git
synced 2026-08-14 17:03:29 +00:00
posix_spawnattr_init() no longer pre-fills attr->stacksize and attr->priority (it leaves them zero, as memset already does). When a caller does not set them, the binary loader supplies them from the loaded ELF (binp->stacksize / binp->priority, parsed from the nx_* symbols), and nxtask_spawn_exec() falls back to the parent priority and CONFIG_POSIX_SPAWN_DEFAULT_STACKSIZE for the posix_spawn() function-task path. This lets an application's stack size and priority embedded as ELF symbols actually drive the spawned task, instead of being overridden by the spawnattr defaults. Signed-off-by: anjiahao <anjiahao@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| exit.c | ||
| Make.defs | ||
| spawn.h | ||
| task.h | ||
| task_activate.c | ||
| task_argvstr.c | ||
| task_cancelpt.c | ||
| task_create.c | ||
| task_delete.c | ||
| task_execve.c | ||
| task_exit.c | ||
| task_exithook.c | ||
| task_fork.c | ||
| task_getgroup.c | ||
| task_getpid.c | ||
| task_getppid.c | ||
| task_gettid.c | ||
| task_init.c | ||
| task_join.c | ||
| task_posixspawn.c | ||
| task_prctl.c | ||
| task_recover.c | ||
| task_reparent.c | ||
| task_restart.c | ||
| task_setup.c | ||
| task_spawn.c | ||
| task_spawnparms.c | ||
| task_start.c | ||
| task_terminate.c | ||