Skip to content

Commit

Permalink
Fix kqueue build
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Oct 30, 2020
1 parent 5da019d commit abd3887
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/reactor/kqueue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ ReactorKqueue::ReactorKqueue(Reactor *reactor, int max_events) : ReactorImpl(rea
events_ = new struct kevent[max_events];
}

bool ReactorKqueue::ready() {
return epfd_ >= 0;
}

ReactorKqueue::~ReactorKqueue() {
if (epfd_ >= 0) {
close(epfd_);
Expand Down

0 comments on commit abd3887

Please sign in to comment.