[or-cvs] Always disable kqueue on OSX. It seems linked to kernel pa...

Nick Mathewson nickm at seul.org
Mon May 23 04:29:00 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv13281/src/or

Modified Files:
	config.c 
Log Message:
Always disable kqueue on OSX.  It seems linked to kernel panics

Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.352
retrieving revision 1.353
diff -u -d -r1.352 -r1.353
--- config.c	23 May 2005 02:31:53 -0000	1.352
+++ config.c	23 May 2005 04:28:58 -0000	1.353
@@ -4,7 +4,6 @@
 /* See LICENSE for licensing information */
 /* $Id$ */
 const char config_c_id[] = "$Id$";
-
 /**
  * \file config.c
  *
@@ -290,6 +289,9 @@
      * 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)



More information about the tor-commits mailing list