diff --git a/io/kqueue.cpp b/io/kqueue.cpp index ff905609..19563549 100644 --- a/io/kqueue.cpp +++ b/io/kqueue.cpp @@ -138,7 +138,7 @@ class KQueue : public MasterEventEngine, public CascadingEventEngine, public Res struct kevent entry; EV_SET(&entry, _kq, EVFILT_USER, EV_ONESHOT, NOTE_TRIGGER, 0, nullptr); struct timespec tm{0, 0}; - return kevent(_kq, _events, _n, nullptr, 0, &tm); + return kevent(_kq, &entry, 1, nullptr, 0, &tm); } // This vector is used to filter invalid add/rm_interest requests which may affect kevent's