Set D_TRACKCLOSE to avoid a race in devfs that could lead to orphaned bpf

devices never getting fully closed.

MFC after:	3 days
This commit is contained in:
John Baldwin 2008-05-09 19:29:08 +00:00
parent 084bc6a480
commit 7fb547c7f5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178882

View file

@ -140,6 +140,7 @@ static d_kqfilter_t bpfkqfilter;
static struct cdevsw bpf_cdevsw = {
.d_version = D_VERSION,
.d_flags = D_TRACKCLOSE,
.d_open = bpfopen,
.d_close = bpfclose,
.d_read = bpfread,