Skip to content

Commit

Permalink
FIX: stupid kqueue typo in cancel_wait (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldwings authored Sep 26, 2024
1 parent a9e38cc commit 1842e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/kqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1842e76

Please sign in to comment.