Skip to content
Merged

Dev #823

Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions freebsd/kern/kern_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -2221,7 +2221,11 @@ kqueue_wakeup(struct kqueue *kq)
kq->kq_state &= ~KQ_SEL;
}
if (!knlist_empty(&kq->kq_sel.si_note))
#ifndef FSTACK
kqueue_schedtask(kq);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gcc build error :kern_event.c:1676:1: error: ‘kqueue_schedtask’ defined but not used
May be you also use #ifndef FSTACK and '#endif' to protect the definition of kqueue_schedtask in line 1676.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

#else
KNOTE_UNLOCKED(&kq->kq_sel.si_note, 0);
#endif
if ((kq->kq_state & KQ_ASYNC) == KQ_ASYNC) {
pgsigio(&kq->kq_sigio, SIGIO, 0);
}
Expand Down