Skip to content

Commit bffd92f

Browse files
committed
args: Support -nopid
1 parent 12f8d84 commit bffd92f

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
@@ -175,6 +175,8 @@ static fs::path GetPidFile(const ArgsManager& args)
175175

176176
[[nodiscard]] static bool CreatePidFile(const ArgsManager& args)
177177
{
178+
if (args.IsArgNegated("-pid")) return true;
179+
178180
std::ofstream file{GetPidFile(args)};
179181
if (file) {
180182
#ifdef WIN32

0 commit comments

Comments
 (0)