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

commits at svn.opendnssec.org commits at svn.opendnssec.org
Fri Jan 11 11:07:56 CET 2013


Author: matthijs
Date: Fri Jan 11 11:07:56 2013
New Revision: 6944
URL: http://fisheye.opendnssec.org/changelog/opendnssec?cs=6944

Log:
also start xfrhandler before privdrop

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

Modified: trunk/OpenDNSSEC/signer/src/daemon/engine.c
==============================================================================
--- trunk/OpenDNSSEC/signer/src/daemon/engine.c	Thu Jan 10 18:12:51 2013	(r6943)
+++ trunk/OpenDNSSEC/signer/src/daemon/engine.c	Fri Jan 11 11:07:56 2013	(r6944)
@@ -502,9 +502,9 @@
         }
         engine->xfrhandler->dnshandler.fd = sockets[0];
         engine->dnshandler->xfrhandler.fd = sockets[1];
+        engine_start_dnshandler(engine);
     }
-    /* start dns handler */
-    engine_start_dnshandler(engine);
+    engine_start_xfrhandler(engine);
     /* privdrop */
     engine->uid = privuid(engine->config->username);
     engine->gid = privgid(engine->config->group);
@@ -573,9 +573,8 @@
     /* create workers/drudgers */
     engine_create_workers(engine);
     engine_create_drudgers(engine);
-    /* start cmd/xfr handlers */
+    /* start cmdhandler */
     engine_start_cmdhandler(engine);
-    engine_start_xfrhandler(engine);
     tsig_handler_init(engine->allocator);
     /* write pidfile */
     if (util_write_pidfile(engine->config->pid_filename, engine->pid) == -1) {



More information about the Opendnssec-commits mailing list