From 1842e768827c155c0f7b23d2214f82d18301e514 Mon Sep 17 00:00:00 2001 From: Coldwings Date: Thu, 26 Sep 2024 12:02:02 +0800 Subject: [PATCH] FIX: stupid kqueue typo in `cancel_wait` (#575) --- io/kqueue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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