aboutsummaryrefslogtreecommitdiffstats
path: root/main/varnish/fix-stack-overflow.patch
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 09:37:18 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2017-11-10 09:37:18 +0000
commite023db2355003ad8373eba245ff1f92c31900f49 (patch)
tree4a376141167dc348379ac6514909b1a9c725e596 /main/varnish/fix-stack-overflow.patch
parent9963654832948d456136dd6239863f5c692fde1a (diff)
downloadaports-e023db2355003ad8373eba245ff1f92c31900f49.tar.bz2
aports-e023db2355003ad8373eba245ff1f92c31900f49.tar.xz
main/varnish: upgrade to 5.2.0
Diffstat (limited to 'main/varnish/fix-stack-overflow.patch')
-rw-r--r--main/varnish/fix-stack-overflow.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/main/varnish/fix-stack-overflow.patch b/main/varnish/fix-stack-overflow.patch
index f516fdd429..fe1edc4a30 100644
--- a/main/varnish/fix-stack-overflow.patch
+++ b/main/varnish/fix-stack-overflow.patch
@@ -1,6 +1,6 @@
--- ./bin/varnishd/waiter/cache_waiter_epoll.c.orig
+++ ./bin/varnishd/waiter/cache_waiter_epoll.c
-@@ -70,7 +70,7 @@
+@@ -68,7 +68,7 @@
static void *
vwe_thread(void *priv)
{
@@ -9,16 +9,17 @@
struct waited *wp;
struct waiter *w;
double now, then;
-@@ -82,6 +82,8 @@
+@@ -80,6 +80,9 @@
w = vwe->waiter;
CHECK_OBJ_NOTNULL(w, WAITER_MAGIC);
THR_SetName("cache-epoll");
+ ev = calloc(NEEV, sizeof(struct epoll_event));
+ assert(ev != NULL);
++
+ THR_Init();
now = VTIM_real();
- while (1) {
-@@ -149,6 +151,7 @@
+@@ -148,6 +151,7 @@
closefd(&vwe->pipe[0]);
closefd(&vwe->pipe[1]);
closefd(&vwe->epfd);