From e0af58fd971e32edb828857b15b3d69907e57be0 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Fri, 18 Feb 2022 07:55:24 +0100 Subject: [PATCH] #21 daemonize -> daemonise --- BaseCommon/Daemon.cpp | 2 +- BaseCommon/Daemon.h | 2 +- DStarGateway/DStarGatewayApp.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BaseCommon/Daemon.cpp b/BaseCommon/Daemon.cpp index 6fc09b0..aa34ed7 100644 --- a/BaseCommon/Daemon.cpp +++ b/BaseCommon/Daemon.cpp @@ -37,7 +37,7 @@ int CDaemon::m_pid_fd = -1; std::string CDaemon::m_pidFileName(""); -DAEMONIZE_RESULT CDaemon::daemonize(const std::string& pidFile, const std::string& userName) +DAEMONIZE_RESULT CDaemon::daemonise(const std::string& pidFile, const std::string& userName) { // get user struct passwd* user = nullptr; diff --git a/BaseCommon/Daemon.h b/BaseCommon/Daemon.h index 3fa8809..7f2556f 100644 --- a/BaseCommon/Daemon.h +++ b/BaseCommon/Daemon.h @@ -29,7 +29,7 @@ enum DAEMONIZE_RESULT class CDaemon { public: - static DAEMONIZE_RESULT daemonize(const std::string& pidFile, const std::string& user); + static DAEMONIZE_RESULT daemonise(const std::string& pidFile, const std::string& user); static void finalise(); private: diff --git a/DStarGateway/DStarGatewayApp.cpp b/DStarGateway/DStarGatewayApp.cpp index 8604a00..d0d5c52 100644 --- a/DStarGateway/DStarGatewayApp.cpp +++ b/DStarGateway/DStarGatewayApp.cpp @@ -93,7 +93,7 @@ int main(int argc, char *argv[]) if (daemon.daemon) { CLog::logInfo("Configured as a daemon, detaching ..."); - auto res = CDaemon::daemonize(daemon.pidFile, daemon.user); + auto res = CDaemon::daemonise(daemon.pidFile, daemon.user); switch (res) {