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

Matthijs Mekking matthijs at nlnetlabs.nl
Thu Aug 26 13:46:54 CEST 2010


Author: matthijs
Date: 2010-08-26 13:46:53 +0200 (Thu, 26 Aug 2010)
New Revision: 3798

Modified:
   trunk/OpenDNSSEC/signer/src/daemon/engine.c
Log:
moving hsm_open made ods-signer hang

Modified: trunk/OpenDNSSEC/signer/src/daemon/engine.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/daemon/engine.c	2010-08-26 11:39:21 UTC (rev 3797)
+++ trunk/OpenDNSSEC/signer/src/daemon/engine.c	2010-08-26 11:46:53 UTC (rev 3798)
@@ -463,6 +463,13 @@
     sigaction(SIGHUP, &action, NULL);
     sigaction(SIGTERM, &action, NULL);
 
+    /* set up hsm */
+    result = hsm_open(engine->config->cfg_filename, hsm_prompt_pin, NULL); /* LEAKS */
+    if (result != HSM_OK) {
+        se_log_error("Error initializing libhsm (errno %i)", result);
+        return 1;
+    }
+
     /* set up the work floor */
     engine->tasklist = tasklist_create(); /* tasks */
     engine->zonelist = zonelist_create(); /* zones */
@@ -749,12 +756,6 @@
     se_log_init(engine->config->log_filename, engine->config->use_syslog,
        engine->config->verbosity);
 
-    /* set up hsm */
-    result = hsm_open(engine->config->cfg_filename, hsm_prompt_pin, NULL); /* LEAKS */
-    if (result != HSM_OK) {
-        se_log_error("Error initializing libhsm (errno %i)", result);
-        goto earlyexit;
-    }
     /* setup */
     tzset(); /* for portability */
     if (engine_setup(engine) != 0) {




More information about the Opendnssec-commits mailing list