]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Merge branch 'trac1546'
authorJINMEI Tatuya <jinmei@isc.org>
Tue, 17 Jan 2012 17:50:48 +0000 (09:50 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Tue, 17 Jan 2012 17:50:48 +0000 (09:50 -0800)
1  2 
src/bin/auth/main.cc
src/bin/resolver/main.cc

Simple merge
index 48344588816de40da71c9bbc5cfd5a71711b4a4a,2026e4e4051db6701fe4dd790acdc5e900a00678..bfcad6790a3305df9c89ccc1283acfab5fcd9631
@@@ -202,12 -208,20 +202,15 @@@ main(int argc, char* argv[]) 
          LOG_DEBUG(resolver_logger, RESOLVER_DBG_INIT, RESOLVER_SERVICE_CREATED);
  
          cc_session = new Session(io_service.get_io_service());
-         isc::server_common::initSocketReqeustor(*cc_session);
+         isc::server_common::initSocketRequestor(*cc_session);
+         // We delay starting listening to new commands/config just before we
+         // go into the main loop.   See auth/main.cc for the rationale.
          config_session = new ModuleCCSession(specfile, *cc_session,
                                               my_config_handler,
-                                              my_command_handler);
+                                              my_command_handler, false);
          LOG_DEBUG(resolver_logger, RESOLVER_DBG_INIT, RESOLVER_CONFIG_CHANNEL);
  
 -        // FIXME: This does not belong here, but inside Boss
 -        if (uid != NULL) {
 -            changeUser(uid);
 -        }
 -
          resolver->setConfigSession(config_session);
          // Install all initial configurations.  If loading configuration
          // fails, it will be logged, but we start the server anyway, giving