zyfeier opened a new pull request, #22300: URL: https://github.com/apache/nuttx/pull/22300
## Summary This reworks ten sched/signal functions that the internal Coverity/MISRA checks flagged, on top of the current signal code: - one exit path per function, results kept in a local variable instead of returning in the middle of the function (nxsig_notification, nxsig_queue_send, nxsig_kill, nxsig_timedwait, nxsig_clockwait, nxsig_dispatch, nxsig_tcbdispatch, clock_nanosleep) - positive-form condition tests (GOOD_SIGNO, the clockid range) - the body of nxsig_tcbdispatch() nested under the branch that handles a real signal; its token stream is unchanged - the wakeup sequence duplicated in the masked and unmasked branches extracted into nxsig_wakeup_task() ## Impact No functional change: the statement order, the critical sections and the lock handling are preserved. Out-of-tree code is unaffected. ## Testing sim:nsh, sim:smp and sim:ostest build; sim:ostest runs past the timed wait test with no FAIL and no assertion (the work-queue hang at the end also happens on master). qemu-armv8a:nsh_smp builds and runs ostest to completion. smartl-c906:knsh (kernel build) and stm32l476vg-disco:knsh build. LTP POSIX signal tests on qemu-intel64:citest_smp: 30 of 31 pass; sigaltstack_1_1 is unresolved because sigaltstack() is not implemented (same on master). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
