From 0966ad5a0ad2343133d075618db442294380e854 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 01:18:07 +0000 Subject: Make WritePID read directly from the config. --- src/configreader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 8fc8a9419..286454d1d 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -383,7 +383,6 @@ void ServerConfig::Fill() FullHostInTopic = options->getBool("hostintopic"); MaxTargets = security->getUInt("maxtargets", 20, 1, 31); DefaultModes = options->getString("defaultmodes", "not"); - PID = ConfValue("pid")->getString("file"); c_ipv4_range = ConfValue("cidr")->getUInt("ipv4clone", 32, 1, 32); c_ipv6_range = ConfValue("cidr")->getUInt("ipv6clone", 128, 1, 128); Limits = ServerLimits(ConfValue("limits")); @@ -489,7 +488,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string &useruid) // write once here, to try it out and make sure its ok if (valid) - ServerInstance->WritePID(this->PID, !old); + ServerInstance->WritePID(!old); ConfigTagList binds = ConfTags("bind"); if (binds.first == binds.second) -- cgit v1.3.1-10-gc9f91