Skip to content

Commit

Permalink
close the kqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNumbat committed Feb 2, 2024
1 parent 9cbed00 commit f095579
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rpp/pos/async_bsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ void Event::reset() const noexcept {
if((count < 0) || (signaled.flags == EV_ERROR)) {
die("Failed to wait on kevents: %", Log::sys_error());
}
close(kq);

if(count == 0) {
return wait_any(events);
}
Expand Down

0 comments on commit f095579

Please sign in to comment.