HomeFreeBSD

sigtd(): prefer non-stopped thread as a target for signal queue

Description

sigtd(): prefer non-stopped thread as a target for signal queue

This should improve signal delivery latency and better expose the
process state to the executing threads.

Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D41128

Details

Provenance
kibAuthored on Jul 21 2023, 9:41 AM
Reviewer
markj
Differential Revision
D41128: Different fix for the killpg race, part2
Parents
rGaaa924138a31: Revert "killpg(): close a race with fork(), part 2"
Branches
Unknown
Tags
Unknown