[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3833 - in trunk/OpenDNSSEC/enforcer: common enforcerd

Sion Lloyd sion at nominet.org.uk
Tue Aug 31 10:20:19 CEST 2010


Author: sion
Date: 2010-08-31 10:20:18 +0200 (Tue, 31 Aug 2010)
New Revision: 3833

Modified:
   trunk/OpenDNSSEC/enforcer/common/kaspaccess.c
   trunk/OpenDNSSEC/enforcer/enforcerd/enforcer.c
Log:
Remove PID file on DB version exit, pivotal story 4941550. (Also one other exit caught.)


Modified: trunk/OpenDNSSEC/enforcer/common/kaspaccess.c
===================================================================
--- trunk/OpenDNSSEC/enforcer/common/kaspaccess.c	2010-08-31 08:10:17 UTC (rev 3832)
+++ trunk/OpenDNSSEC/enforcer/common/kaspaccess.c	2010-08-31 08:20:18 UTC (rev 3833)
@@ -133,6 +133,7 @@
 {
     /* Note that all these XML derived strings are unsigned chars */
 	if (DbConnect(handle, (char *)config->schema, (char *)config->host, (char *)config->password, (char *)config->user) != 0) {
+        unlink(config->pidfile);
         exit(-1);
     }
 

Modified: trunk/OpenDNSSEC/enforcer/enforcerd/enforcer.c
===================================================================
--- trunk/OpenDNSSEC/enforcer/enforcerd/enforcer.c	2010-08-31 08:10:17 UTC (rev 3832)
+++ trunk/OpenDNSSEC/enforcer/enforcerd/enforcer.c	2010-08-31 08:20:18 UTC (rev 3833)
@@ -752,6 +752,7 @@
                     /* Check datetime in case it came back NULL */
                     if (datetime == NULL) {
                         log_msg(config, LOG_DEBUG, "Couldn't turn \"now\" into a date, quitting...");
+                        unlink(config->pidfile);
                         exit(1);
                     }
 




More information about the Opendnssec-commits mailing list