[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3751 - trunk/OpenDNSSEC/signer/src/daemon

Matthijs Mekking matthijs at nlnetlabs.nl
Thu Aug 12 14:55:37 CEST 2010


Author: matthijs
Date: 2010-08-12 14:55:37 +0200 (Thu, 12 Aug 2010)
New Revision: 3751

Modified:
   trunk/OpenDNSSEC/signer/src/daemon/engine.c
Log:
atomicity coverity report



Modified: trunk/OpenDNSSEC/signer/src/daemon/engine.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/daemon/engine.c	2010-08-12 12:14:58 UTC (rev 3750)
+++ trunk/OpenDNSSEC/signer/src/daemon/engine.c	2010-08-12 12:55:37 UTC (rev 3751)
@@ -489,7 +489,9 @@
 {
     se_log_assert(engine);
 
+    lock_basic_lock(&engine->signal_lock);
     engine->signal = SIGNAL_RUN;
+    lock_basic_unlock(&engine->signal_lock);
     while (engine->need_to_exit == 0 && engine->need_to_reload == 0) {
         lock_basic_lock(&engine->signal_lock);
         engine->signal = signal_capture(engine->signal);




More information about the Opendnssec-commits mailing list