[Opendnssec-commits] matthijs r6976 - trunk/OpenDNSSEC/signer/src/daemon

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


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

Log:
set now before trying to pop task

Modified:
   trunk/OpenDNSSEC/signer/src/daemon/worker.c

Modified: trunk/OpenDNSSEC/signer/src/daemon/worker.c
==============================================================================
--- trunk/OpenDNSSEC/signer/src/daemon/worker.c	Wed Jan 23 16:16:00 2013	(r6975)
+++ trunk/OpenDNSSEC/signer/src/daemon/worker.c	Wed Jan 23 16:20:24 2013	(r6976)
@@ -581,6 +581,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(&engine->taskq->schedule_lock);
         worker->task = schedule_pop_task(engine->taskq);
         if (worker->task) {
@@ -621,7 +622,6 @@
                 worker->thread_num);
             worker->task = schedule_get_first_task(engine->taskq);
             lock_basic_unlock(&engine->taskq->schedule_lock);
-            now = time_now();
             if (worker->task && !engine->taskq->loading) {
                 timeout = (worker->task->when - now);
             } else {



More information about the Opendnssec-commits mailing list