HomeFreeBSD

MFC r313733:

Description

MFC r313733:

sleepq_catch_signals: do thread suspension before signal check

Since locks are dropped when a thread suspends, it's possible for another
thread to deliver a signal to the suspended thread. If the thread awakens from
suspension without checking for signals, it may go to sleep despite having
a pending signal that should wake it up. Therefore the suspension check is
done first, so any signals sent while suspended will be caught in the
subsequent signal check.

Approved by: kib (mentor)
Sponsored by: Dell EMC

Details

Committed
badgerMar 6 2017, 1:11 AM
Parents
rS314718: Fix the build. Use new ipfw_lookup_table() in the nat64 too.
Branches
Unknown
Tags
Unknown