args: Support -nopid

This commit is contained in:
Hodlinator committed 2024-11-20 22:55:26 +01:00
1 parent 12f8d848fd
commit bffd92f00f
1 file changed
+2
+2
View File
@@ -175,6 +175,8 @@ static fs::path GetPidFile(const ArgsManager& args)
[[nodiscard]] static bool CreatePidFile(const ArgsManager& args)
{
if (args.IsArgNegated("-pid")) return true;
std::ofstream file{GetPidFile(args)};
if (file) {
#ifdef WIN32