summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2004-09-06 19:02:42 +0000
committerjmg <jmg@FreeBSD.org>2004-09-06 19:02:42 +0000
commitb29998067a5420dad6d92fa4f6fe24c9d5a0363f (patch)
treed378d571133cbbe65810eacd9faa82c60ed7ed2e /sys/net
parent0818c3dd0ff4b449b9d66eaf44addc8fcf0b64c9 (diff)
downloadFreeBSD-src-b29998067a5420dad6d92fa4f6fe24c9d5a0363f.zip
FreeBSD-src-b29998067a5420dad6d92fa4f6fe24c9d5a0363f.tar.gz
don't call f_detach if the filter has alread removed the knote.. This
happens when a proc exits, but needs to inform the user that this has happened.. This also means we can remove the check for detached from proc and sig f_detach functions as this is doing in kqueue now... MFC after: 5 days
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index dce37b9..1ba833e 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -219,9 +219,6 @@ filt_netdetach(struct knote *kn)
{
struct knlist *klist = (struct knlist *)kn->kn_hook;
- if (kn->kn_status & KN_DETACHED)
- return;
-
knlist_remove(klist, kn, 0);
}
OpenPOWER on IntegriCloud