also set has_lock to 0 when a worker starts.

This commit is contained in:
Joris Vink 2013-07-05 21:17:08 +02:00
parent e1183e22a6
commit 51efd84b6e
1 changed files with 1 additions and 0 deletions

View File

@ -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);