]> git.meshlink.io Git - meshlink/commitdiff
Also don't use poll() on MacOS/X.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 15 Nov 2012 10:24:18 +0000 (11:24 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 15 Nov 2012 10:24:18 +0000 (11:24 +0100)
src/tincd.c

index 28f30a52c772b494154658931bce1770d1316817..be131643c6ac3daa0a4fbce907075de33bf92ec5 100644 (file)
@@ -451,7 +451,10 @@ int main2(int argc, char **argv) {
 #endif
 
 #ifdef HAVE_DARWIN
-       setenv("EVENT_NOKQUEUE", "1", 0);
+       if(!getenv("EVENT_KQUEUE"))
+               setenv("EVENT_NOKQUEUE", "1", 0);
+       if(!getenv("EVENT_POLL"))
+               setenv("EVENT_NOPOLL", "1", 0);
 #endif
 
        if(!event_init()) {