pf: make DIOCGETSTATESNV iterations killable

Reviewed by:	kp
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-07-02 09:28:48 +02:00
parent 904a08f342
commit 48d5b86364

View File

@ -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);