]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1704] Clarify why a null sync object is used in LoggerManager::readLocalMessageFile()
authorMukund Sivaraman <muks@isc.org>
Fri, 1 Jun 2012 06:13:40 +0000 (11:43 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 1 Jun 2012 06:14:03 +0000 (11:44 +0530)
src/lib/log/logger_manager.cc

index ad3bffa757f880527ee9e2ac1f5c779f3327f18d..8431c2ea5374dc2ef52be191119d2893e3b518ca 100644 (file)
@@ -150,7 +150,10 @@ LoggerManager::readLocalMessageFile(const char* file) {
     MessageDictionary& dictionary = MessageDictionary::globalDictionary();
     MessageReader reader(&dictionary);
 
-    // Turn off use of any lock files
+    // Turn off use of any lock files. This is because this logger can
+    // be used by standalone programs which may not have write access to
+    // the local state directory (to create lock files). So we switch to
+    // using a null interprocess sync object here.
     logger.setInterprocessSync(new isc::util::InterprocessSyncNull("logger"));
 
     try {