r407 - trunk/varnish-cache/contrib/libevent

phk at projects.linpro.no phk at projects.linpro.no
Mon Jul 10 15:58:24 CEST 2006


Author: phk
Date: 2006-07-10 15:58:24 +0200 (Mon, 10 Jul 2006)
New Revision: 407

Modified:
   trunk/varnish-cache/contrib/libevent/event.c
Log:
Don't ever set current_base in our version of libevent in order to flush
out any bugs it might cause.


Modified: trunk/varnish-cache/contrib/libevent/event.c
===================================================================
--- trunk/varnish-cache/contrib/libevent/event.c	2006-07-10 13:48:01 UTC (rev 406)
+++ trunk/varnish-cache/contrib/libevent/event.c	2006-07-10 13:58:24 UTC (rev 407)
@@ -194,7 +194,9 @@
 	/* allocate a single active event queue */
 	event_base_priority_init(mybase, 1);
 
+#if 0
 	current_base = mybase;
+#endif
 	return (mybase);
 }
 
@@ -504,7 +506,8 @@
 	ev->ev_pncalls = NULL;
 
 	/* by default, we put new events into the middle priority */
-	ev->ev_pri = current_base->nactivequeues/2;
+	if (current_base != NULL)
+		ev->ev_pri = current_base->nactivequeues/2;
 }
 
 int




More information about the varnish-commit mailing list