Repository navigation
testing/ostest: Do not expect a blocked SIGKILL or SIGSTOP in sighand. - #4181
Merged
Merged
Conversation
nxstyle reports a missing blank line after the declaration of error in waiter_main(). Add it. No functional change. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
wakeup_action() checked that the signal mask in the handler is the full set, SIGKILL and SIGSTOP included. POSIX says that SIGKILL and SIGSTOP cannot be blocked, so they are not part of the mask of a handler. Leave SIGKILL and SIGSTOP out of both sets before the compare. The case then checks the mask of a handler as POSIX defines it. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
xiaoxiang781216
approved these changes
Nov 27, 2026
acassis
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wakeup_action()intesting/ostest/sighand.cchecks that the signal mask in the handler is the full set (sigfillset()), SIGKILL and SIGSTOP included. POSIX says that SIGKILL and SIGSTOP cannot be blocked, so they are not part of the mask of a handler.This PR:
waiter_main()that nxstyle asks for (no code change; the CI checks the whole file).Impact
Test only. The other signals are compared as before.
Testing
Host: macOS arm64 (Arm GNU 13.2.Rel1, QEMU 11.1 TCG, cortex-a53). NuttX master 0c45a2fc48b, nuttx-apps master c621be6. Builds with
-Werror.ostest on qemu-armv8a:nsh (flat) and qemu-armv8a:knsh (kernel, ostest from /system/bin), before and after this PR:
ostest_main: Exiting with status 0, no assertion.Builds with
-Werrorin the CI image: rv-virt:nsh64 and rv-virt:knsh64 with ostest, qemu-armv8a:nsh. 0 warnings (rv-virt has the RWX segment linker warning of master).tools/checkpatch.sh -c -u -m -g: pass.