HomeFreeBSD

Fix issig() to check signal_pending after dequeue SIGSTOP/SIGTSTP

Description

Fix issig() to check signal_pending after dequeue SIGSTOP/SIGTSTP

When process got SIGSTOP/SIGTSTP, issig() dequeue them and return 0.
But process could still have another signal pending after dequeue. So,
after dequeue, check and return 1, if signal_pending.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Jitendra Patidar <jitendra.patidar@nutanix.com>
Closes #16464

Details

Provenance
Jitendra Patidar <jitendra.patidar@nutanix.com>Authored on Aug 27 2024, 12:36 AM
Tony Hutter <hutter2@llnl.gov>Committed on Nov 14 2024, 11:20 PM
Parents
rGa6198f34bd33: Simplify issig().
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGf6fce8e12a1b: Fix issig() to check signal_pending after dequeue SIGSTOP/SIGTSTP (authored by Jitendra Patidar <jitendra.patidar@nutanix.com>).Nov 14 2024, 11:20 PM