]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4107] addressed review
authorRazvan Becheriu <razvan@isc.org>
Mon, 15 Sep 2025 09:19:32 +0000 (12:19 +0300)
committerRazvan Becheriu <razvan@isc.org>
Mon, 15 Sep 2025 09:19:32 +0000 (12:19 +0300)
src/lib/process/daemon.cc
src/lib/util/pid_file.h

index d95e38651b685c2a7c1d271b3314a862ccafaa77..b0491b80b479b98a4f77053719c40b89535815fc 100644 (file)
@@ -23,6 +23,7 @@
 #include <errno.h>
 
 using namespace isc::data;
+using namespace isc::util;
 using namespace isc::util::file;
 
 /// @brief provides default implementation for basic daemon operations
@@ -238,7 +239,7 @@ Daemon::createPIDFile(int pid) {
     }
 
     // Acquire a lock for check and write operations.
-    util::PIDLock pid_lock(getPIDLockName());
+    PIDLock pid_lock(getPIDLockName());
     if (!pid_lock.isLocked()) {
         isc_throw(DaemonPIDExists, "Daemon::createPIDFile: can't lock, "
                   "PID lock file: " << getPIDLockName());
index 6637e2cdcc19993dab39e1a47de6b70b40ca5195..7b806c356a7a9518c255a61af5d1b35d57093aab 100644 (file)
@@ -127,7 +127,7 @@ public:
     }
 
 private:
-    /// @brief Name of the Lock file.
+    /// @brief Name of the lock file.
     std::string lockname_;
 
     /// @brief File descriptor to the lock file.