[Opendnssec-commits] [svn.opendnssec.org/svn/dnssec] r5419 - branches/OpenDNSSEC-1.3/signer/src/daemon

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Aug 16 16:27:48 CEST 2011


Author: matthijs
Date: 2011-08-16 16:27:47 +0200 (Tue, 16 Aug 2011)
New Revision: 5419

Modified:
   branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c
Log:
also quit waiting when we need to exit



Modified: branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c
===================================================================
--- branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c	2011-08-16 12:40:04 UTC (rev 5418)
+++ branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c	2011-08-16 14:27:47 UTC (rev 5419)
@@ -727,7 +727,7 @@
     ods_log_assert(worker);
     lock_basic_lock(&worker->worker_lock);
     /* [LOCK] worker */
-    while (!worker_fulfilled(worker)) {
+    while (!worker->need_to_exit && !worker_fulfilled(worker)) {
         worker->sleeping = 1;
         lock_basic_sleep(&worker->worker_alarm, &worker->worker_lock,
             timeout);




More information about the Opendnssec-commits mailing list