mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
args: Support -nopid
This commit is contained in:
parent
12f8d848fd
commit
bffd92f00f
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue