Add GIANT_REQUIRED to kqueue_close(), since kqueue currently requires

Giant.
This commit is contained in:
Robert Watson 2004-06-01 18:05:41 +00:00
parent 63732dce22
commit 948a4734ed

View File

@ -861,6 +861,8 @@ kqueue_close(struct file *fp, struct thread *td)
struct knote **knp, *kn, *kn0;
int i;
GIANT_REQUIRED;
FILEDESC_LOCK(fdp);
for (i = 0; i < fdp->fd_knlistsize; i++) {
knp = &SLIST_FIRST(&fdp->fd_knlist[i]);