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:
parent
084bc6a480
commit
7fb547c7f5
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user