diff --git a/src/init.cpp b/src/init.cpp index 0d255db375f..19efc69aaa2 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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