Skip to content

Commit c850b5b

Browse files
hodlinatorluke-jr
authored andcommitted
args: Support -nopid
Github-Pull: bitcoin#31212 Rebased-From: bffd92f
1 parent 397cc86 commit c850b5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/init.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ static fs::path GetPidFile(const ArgsManager& args)
171171

172172
[[nodiscard]] static bool CreatePidFile(const ArgsManager& args)
173173
{
174+
if (args.IsArgNegated("-pid")) return true;
175+
174176
std::ofstream file{GetPidFile(args)};
175177
if (file) {
176178
#ifdef WIN32

0 commit comments

Comments
 (0)