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

commit e82aafe61bdfa7fc0cda793d70af8bd0d678710d
Author: Marco Casaroli <[email protected]>
AuthorDate: Wed Oct 28 10:37:56 2026 +0100

    sched/Kconfig: SCHED_HAVE_PARENT needs signals.
    
    With CONFIG_SCHED_HAVE_PARENT, a task that exits sends SIGCHLD to its
    parent (group_signal() in task_exithook.c), and waitpid() and waitid()
    wait for SIGCHLD with nxsig_timedwait().  With
    CONFIG_DISABLE_ALL_SIGNALS none of these functions is built, so a
    protected build that has both options does not link:
    
      task_exithook.c:208: undefined reference to `group_signal'
      sched_waitpid.c:193: undefined reference to `nxsig_timedwait'
    
    Make SCHED_HAVE_PARENT depend on !DISABLE_ALL_SIGNALS.  waitpid()
    without SCHED_HAVE_PARENT does not use signals.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 sched/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sched/Kconfig b/sched/Kconfig
index cd5c9945819..d5488299ebd 100644
--- a/sched/Kconfig
+++ b/sched/Kconfig
@@ -697,6 +697,7 @@ config TASK_MAX_ARGS
 config SCHED_HAVE_PARENT
        bool "Support parent/child task relationships"
        default n
+       depends on !DISABLE_ALL_SIGNALS
        ---help---
                Remember the ID of the parent task when a new child task is
                created.  This support enables some additional features (such as

Reply via email to