pf: make DIOCGETSTATESNV iterations killable
Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
904a08f342
commit
48d5b86364
@ -5059,6 +5059,11 @@ pf_getstates(struct pfioc_nv *nv)
|
||||
if (s->timeout == PFTM_UNLINKED)
|
||||
continue;
|
||||
|
||||
if (SIGPENDING(curthread)) {
|
||||
PF_HASHROW_UNLOCK(ih);
|
||||
ERROUT(EINTR);
|
||||
}
|
||||
|
||||
nvls = pf_state_to_nvstate(s);
|
||||
if (nvls == NULL) {
|
||||
PF_HASHROW_UNLOCK(ih);
|
||||
|
Loading…
x
Reference in New Issue
Block a user