X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincd.c;h=be131643c6ac3daa0a4fbce907075de33bf92ec5;hb=8f9ee895224b39347783f3119343efc3bdaa3511;hp=28f30a52c772b494154658931bce1770d1316817;hpb=8a77df9e28114cbfd83351070fdb266cf31fc310;p=tinc diff --git a/src/tincd.c b/src/tincd.c index 28f30a52..be131643 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -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()) {