[Opendnssec-commits] matthijs r6977 - branches/OpenDNSSEC-1.3/signer/src/daemon

commits at svn.opendnssec.org commits at svn.opendnssec.org
Wed Jan 23 16:20:44 CET 2013


Author: matthijs
Date: Wed Jan 23 16:20:44 2013
New Revision: 6977
URL: http://fisheye.opendnssec.org/changelog/opendnssec?cs=6977

Log:
set now before popping new task

Modified:
   branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c

Modified: branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c
==============================================================================
--- branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c	Wed Jan 23 16:20:24 2013	(r6976)
+++ branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c	Wed Jan 23 16:20:44 2013	(r6977)
@@ -525,6 +525,7 @@
     while (worker->need_to_exit == 0) {
         ods_log_debug("[%s[%i]] report for duty", worker2str(worker->type),
             worker->thread_num);
+        now = time_now();
         lock_basic_lock(&worker->engine->taskq->schedule_lock);
         /* [LOCK] schedule */
         worker->task = schedule_pop_task(worker->engine->taskq);
@@ -567,7 +568,6 @@
             /* [UNLOCK] schedule */
             lock_basic_unlock(&worker->engine->taskq->schedule_lock);
 
-            now = time_now();
             if (worker->task && !worker->engine->taskq->loading) {
                 timeout = (worker->task->when - now);
             } else {



More information about the Opendnssec-commits mailing list