mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 11:03:16 +08:00
spawn_execattrs() discards the return value from nxsched_set_scheduler(). As a result, an invalid scheduling policy or parameter is silently ignored and the spawn operation continues with the original scheduling configuration. Store and return the result from nxsched_set_scheduler() so that the caller can tear down the child task when applying the requested scheduler attributes fails. Update the function comments to describe the existing error return behavior. Assisted-by: OpenAI Codex Signed-off-by: yushuailong <yyyusl@qq.com>