1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 06:36:40 +02:00

Fix deleting pidfiles.

This commit is contained in:
Sadie Powell
2024-03-20 21:34:18 +00:00
parent 1a3844e74e
commit 38cfb0603a
+3 -1
View File
@@ -211,7 +211,9 @@ static void InitSignals()
static void remove_pidfile()
{
remove(Config->GetBlock("serverinfo")->Get<const Anope::string>("pid").c_str());
auto pidfile = Anope::ExpandData(Config->GetBlock("serverinfo")->Get<const Anope::string>("pid"));
if (!pidfile.empty())
remove(pidfile.c_str());
}
/* Create our PID file and write the PID to it. */