This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 5f7db152b216c56825cd068fcecd06845b554fd0 Author: wangjianyu3 <[email protected]> AuthorDate: Fri Aug 28 21:13:53 2026 +0800 system/nxinit: fix rptun builtin blocking the action queue RPTUNIOC_START returns the (positive) pid of the rptun kernel thread in async mode (CONFIG_RPTUN_START_SYNC unset). The action engine treats any positive builtin return value as the pid of a spawned child and waitpid()s on it (action.c: "if (ret > 0) pid_running = ret"). The rptun thread is a detached kthread, never a child of init, so that wait blocks the whole action queue forever and "on init" / console never run. Normalize a successful start to 0. Assisted-by: OpenCode:claude-sonnet-5 Signed-off-by: wangjianyu3 <[email protected]> --- system/nxinit/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/nxinit/builtin.c b/system/nxinit/builtin.c index a2bc722bf..c12f8cef4 100644 --- a/system/nxinit/builtin.c +++ b/system/nxinit/builtin.c @@ -323,7 +323,7 @@ static int cmd_rptun(FAR struct action_manager_s *am, } close(fd); - return ret; + return ret < 0 ? ret : 0; } #endif
