diff options
-rw-r--r-- | sys/kern/kern_event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index 452af3d..61b614c 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -441,7 +441,7 @@ filt_timerattach(struct knote *kn) } kn->kn_flags |= EV_CLEAR; /* automatically set */ - kn->kn_flags &= ~EV_DETACHED; /* knlist_add usually sets it */ + kn->kn_status &= ~KN_DETACHED; /* knlist_add usually sets it */ MALLOC(calloutp, struct callout *, sizeof(*calloutp), M_KQUEUE, M_WAITOK); callout_init(calloutp, 1); @@ -462,7 +462,7 @@ filt_timerdetach(struct knote *kn) callout_drain(calloutp); FREE(calloutp, M_KQUEUE); atomic_add_int(&kq_ncallouts, -1); - kn->kn_flags |= EV_DETACHED; /* knlist_remove usually clears it */ + kn->kn_status |= KN_DETACHED; /* knlist_remove usually clears it */ } /* XXX - move to kern_timeout.c? */ |