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 Tue, Aug 27, 12:36 AM
GitHub <noreply@github.com>Committed on Tue, Aug 27, 12:36 AM
Parents
rG6be8bf5552b1: zpool: Provide GUID to zpool-reguid(8) with -g (#16239)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG73866cf3468f: Fix issig() to check signal_pending after dequeue SIGSTOP/SIGTSTP (authored by Jitendra Patidar <jitendra.patidar@nutanix.com>).Tue, Aug 27, 12:36 AM