Add GIANT_REQUIRED to kqueue_close(), since kqueue currently requires
Giant.
This commit is contained in:
parent
63732dce22
commit
948a4734ed
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user