Skip to content

Commit

Permalink
Suggest kqueue on OSX if >= 10.12.2
Browse files Browse the repository at this point in the history
Oops! I failed here. Nothing major, but I removed the kqueue suggestion by
mistake.
  • Loading branch information
jcmfernandes authored and ioquatix committed Feb 21, 2021
1 parent cc6e0f7 commit 90d9599
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ext/libev/ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3147,8 +3147,10 @@ ev_recommended_backends (void) EV_NOEXCEPT
/* only select works correctly on that "unix-certified" platform */
flags &= ~EVBACKEND_KQUEUE; /* horribly broken, even for sockets */
flags &= ~EVBACKEND_POLL; /* poll is based on kqueue from 10.5 onwards */
#elif !defined(__NetBSD__)
/* kqueue is borked on everything but netbsd apparently */
#endif

#if !defined(__NetBSD__) && !defined(__APPLE__)
/* kqueue is borked on everything but netbsd and osx >= 10.12.2 apparently */
/* it usually doesn't work correctly on anything but sockets and pipes */
flags &= ~EVBACKEND_KQUEUE;
#endif
Expand Down

0 comments on commit 90d9599

Please sign in to comment.