/me gets the wrong patch out of the pr :(

/me had the write patch w/o comments on his test system.

Pointed out by:	kuriyama and ache
Pointy hat to:	jmg
This commit is contained in:
John-Mark Gurney 2004-10-14 03:26:50 +00:00
parent 9b4fab9ef6
commit 583ef6b6d2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136500

View File

@ -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? */