mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -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)
|
[[nodiscard]] static bool CreatePidFile(const ArgsManager& args)
|
||||||
{
|
{
|
||||||
|
if (args.IsArgNegated("-pid")) return true;
|
||||||
|
|
||||||
std::ofstream file{GetPidFile(args)};
|
std::ofstream file{GetPidFile(args)};
|
||||||
if (file) {
|
if (file) {
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
|
|
Loading…
Add table
Reference in a new issue