summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_event.c')
-rw-r--r--sys/kern/kern_event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index 8fdcb8d..2375d13 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -887,6 +887,8 @@ findkn:
kev->fflags = 0;
kev->data = 0;
kn->kn_kevent = *kev;
+ kn->kn_kevent.flags &= ~(EV_ADD | EV_DELETE |
+ EV_ENABLE | EV_DISABLE);
kn->kn_status = KN_INFLUX|KN_DETACHED;
error = knote_attach(kn, kq);
OpenPOWER on IntegriCloud