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