mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 19:22:17 +01:00
args: Support -nopid
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user