summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-05-23 04:28:58 +0000
committerNick Mathewson <nickm@torproject.org>2005-05-23 04:28:58 +0000
commit751db63a1739b32cc996c150881b29fd14e8d0aa (patch)
tree2d6c0822b1b5f26f50a35a107e79673323e91bd2
parent78f26e88060f02a3b1858aed813a4b75f0f0c180 (diff)
downloadtor-751db63a1739b32cc996c150881b29fd14e8d0aa.tar.gz
tor-751db63a1739b32cc996c150881b29fd14e8d0aa.zip
Always disable kqueue on OSX. It seems linked to kernel panics
svn:r4282
-rw-r--r--src/or/config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index d29de30800..9ef36fbe61 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4,7 +4,6 @@
/* See LICENSE for licensing information */
/* $Id$ */
const char config_c_id[] = "$Id$";
-
/**
* \file config.c
*
@@ -290,6 +289,9 @@ options_act(void) {
* exist, we don't care about it, since libevent will cope.
*/
suppress_libevent_log_msg("Function not implemented");
+#ifdef __APPLE__
+ putenv("EVENT_NOKQUEUE=1");
+#endif
event_init();
suppress_libevent_log_msg(NULL);
#if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)