From 1e2e5bab7d0008b83dca2f1f737df5e32a93962e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 18 Dec 2015 21:44:55 +1100 Subject: [PATCH] Add semaphores for subproxies --- src/generator.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generator.c b/src/generator.c index 666484c8..54e030e1 100644 --- a/src/generator.c +++ b/src/generator.c @@ -973,6 +973,8 @@ static proxy_instance_t *create_subproxy(ckpool_t *ckp, gdata_t *gdata, proxy_in subproxy->pass = strdup(proxi->pass); subproxy->parent = proxi; subproxy->epfd = proxi->epfd; + cksem_init(&subproxy->cs.sem); + cksem_post(&subproxy->cs.sem); return subproxy; }