diff options
author | root <root> | 2007-11-22 12:28:27 +0000 |
---|---|---|
committer | root <root> | 2007-11-22 12:28:27 +0000 |
commit | 54a57c74105dc818388cec05e6fc874cdbfebf7f (patch) | |
tree | e59571c411c5e916efecf4cb6b1ee2a0c91d3d57 /ev.c | |
parent | 99c0baac0b99f53c7a0bb4a0c5a8a10e8b97605f (diff) |
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -810,11 +810,20 @@ loop_init (EV_P_ unsigned int flags) now_floor = mn_now; rtmn_diff = ev_rt_now - mn_now; - if (!(flags & EVFLAG_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS")) + if (!(flags & EVFLAG_NOENV) + && !enable_secure () + && getenv ("LIBEV_FLAGS")) flags = atoi (getenv ("LIBEV_FLAGS")); - if (!(flags & 0x0000ffff)) - flags |= 0x0000ffff; + if (!(flags & EVMETHOD_ALL)) + { + flags |= EVMETHOD_ALL; +#if EV_USE_KQUEUE && !defined (__NetBSD__) + /* kqueue is borked on everything but netbsd apparently */ + /* it usually doesn't work correctly on anything but sockets and pipes */ + flags &= ~EVMETHOD_KQUEUE; +#endif + } method = 0; #if EV_USE_PORT |