mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 19:53:27 +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)
|
[[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
|
||||||
|
|||||||
Reference in New Issue
Block a user