jlaitine opened a new pull request, #16334: URL: https://github.com/apache/nuttx/pull/16334
## Summary When using pthread_kill, the signal should be delivered to the specified thread. Current implementation, however, may add the signal to the groups pending list, if the signal is masked at the time of dispatch. From the group's pending list it can be delivered to any thread of the group, which is wrong. Fix this by adding a new field "FAR struct tcb_s *tcb" to "struct sigpendq", marking if the signal needs to be delivered to a specific thread. Use NULL for the value if delivery to any thread in the group is ok. ## Impact This fixes operation of pthread_kill ## Testing Tested with ostest in qemu on a real HW (MPFS, risc-v 64-bit, smp 4 cores) and in rv-virt:smp with the patch https://github.com/apache/nuttx-apps/pull/3070. The ostest fails after a few rounds without this patch, and passes with this one. -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org