This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 141a38e5482 sched/task: Fix the SIGCHLD dispatch when pthreads are
disabled.
141a38e5482 is described below
commit 141a38e548225506305fdcb08bdd61c172ecc5ac
Author: Marco Casaroli <[email protected]>
AuthorDate: Sat Oct 17 20:46:03 2026 +0200
sched/task: Fix the SIGCHLD dispatch when pthreads are disabled.
With CONFIG_DISABLE_PTHREAD and CONFIG_SCHED_HAVE_PARENT,
nxtask_sigchild() calls nxsig_tcbdispatch() with two arguments. The
function has three arguments, and the build fails.
Give the missing argument. SIGCHLD goes to the parent process, so
group_dispatch is true, as in group_signal().
Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marco Casaroli <[email protected]>
---
sched/task/task_exithook.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sched/task/task_exithook.c b/sched/task/task_exithook.c
index fa375c70d80..8094c207ca0 100644
--- a/sched/task/task_exithook.c
+++ b/sched/task/task_exithook.c
@@ -248,7 +248,7 @@ static inline void nxtask_sigchild(FAR struct tcb_s *ptcb,
* can provide the correct si_code value with the signal.
*/
- nxsig_tcbdispatch(ptcb, &info);
+ nxsig_tcbdispatch(ptcb, &info, true);
}
}