Commit 65de2ef2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't ever set current_base in our version of libevent in order to flush

out any bugs it might cause.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@407 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 145cc395
......@@ -194,7 +194,9 @@ event_init(void)
/* allocate a single active event queue */
event_base_priority_init(mybase, 1);
#if 0
current_base = mybase;
#endif
return (mybase);
}
......@@ -504,7 +506,8 @@ event_set(struct event *ev, int fd, short events,
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment