kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 51efd84b6efbf14b4f2d5fb80de2fced8d073afa
parent e1183e22a6a7a970213bef80032275c2e18521cf
Author: Joris Vink <joris@coders.se>
Date:   Fri,  5 Jul 2013 21:17:08 +0200

also set has_lock to 0 when a worker starts.

Diffstat:
src/worker.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/worker.c b/src/worker.c @@ -192,6 +192,7 @@ kore_worker_entry(struct kore_worker *kw) u_int64_t now, idle_check; worker = kw; + kw->has_lock = 0; if (chroot(chroot_path) == -1) fatal("cannot chroot(): %s", errno_s);