summaryrefslogtreecommitdiffstats
path: root/src/lib/process/daemon.h
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2019-10-07 15:11:31 +0200
committerFrancis Dupont <fdupont@isc.org>2019-11-25 13:46:41 +0100
commitb20eadce60980d01795fc4337bc0848e1ba9016a (patch)
tree28750bb250529ec28d12ad032696bf25e28ea6a2 /src/lib/process/daemon.h
parent[#883, !506] updated ChangeLog (diff)
downloadkea-b20eadce60980d01795fc4337bc0848e1ba9016a.tar.xz
kea-b20eadce60980d01795fc4337bc0848e1ba9016a.zip
[50-dhcp-hook-libs-should-not-be-loadable-by-ca-d2] Made Daemon::getProcName() a static/class method
Diffstat (limited to 'src/lib/process/daemon.h')
-rw-r--r--src/lib/process/daemon.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/process/daemon.h b/src/lib/process/daemon.h
index 91a2412dba..8b8c24d612 100644
--- a/src/lib/process/daemon.h
+++ b/src/lib/process/daemon.h
@@ -174,11 +174,11 @@ public:
/// @brief returns the process name
/// This value is used as when forming the default PID file name
/// @return text string
- std::string getProcName() const;
+ static std::string getProcName();
/// @brief Sets the process name
/// @param proc_name name the process by which the process is recognized
- void setProcName(const std::string& proc_name);
+ static void setProcName(const std::string& proc_name);
/// @brief Returns the directory used when forming default PID file name
/// @return text string
@@ -265,7 +265,7 @@ private:
std::string config_file_;
/// @brief Name of this process, used when creating its pid file
- std::string proc_name_;
+ static std::string proc_name_;
/// @brief Pointer to the directory where PID file(s) are written
/// It defaults to --localstatedir / run