This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit af2f5091ab421da75fbcbc608fa92f8dca6671b6 Author: Marco Casaroli <[email protected]> AuthorDate: Tue Nov 3 22:57:26 2026 +0100 Documentation: sigaction() reports SIG_DFL for a signal at its default. With CONFIG_SIG_DEFAULT, the old action of a signal at its default action is SIG_DFL, also when the default action is to ignore the signal. SIG_DFL is the same as SIG_IGN only without CONFIG_SIG_DEFAULT. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- Documentation/reference/user/07_signals.rst | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/reference/user/07_signals.rst b/Documentation/reference/user/07_signals.rst index d8f396a09d1..6e7fdcf05fb 100644 --- a/Documentation/reference/user/07_signals.rst +++ b/Documentation/reference/user/07_signals.rst @@ -248,6 +248,9 @@ provided by NuttX: in the location pointed to by the argument oact. If the argument act is NULL, signal handling is unchanged by this function call; thus, the call can be used to inquire about the current handling of a given signal. + With ``CONFIG_SIG_DEFAULT``, oact reports ``SIG_DFL`` for a signal at its + default action, also when the default action is to ignore the signal + (``SIGCHLD``, for example). When a signal is caught by a signal-catching function installed by the sigaction() function, a new signal mask is calculated and installed for @@ -273,8 +276,8 @@ provided by NuttX: **POSIX Compatibility:** Comparable to the POSIX interface of the same name. Differences from the POSIX implementation include: - - There are no default actions so the special value ``SIG_DFL`` is - treated like ``SIG_IGN``. + - Without ``CONFIG_SIG_DEFAULT``, there are no default actions so the + special value ``SIG_DFL`` is treated like ``SIG_IGN``. - All ``sa_flags`` in struct sigaction of act input are ignored (all treated like ``SA_SIGINFO``). The one exception is if ``CONFIG_SCHED_CHILD_STATUS`` is defined; then ``SA_NOCLDWAIT`` is
