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:
+3
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user