aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-09-20 10:56:25 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-09-20 11:03:59 +0200
commitd6712db35419e36b2c89191eb730a86d95abf4b0 (patch)
tree2f251c16c9b9689aaef24f0012378d410c005591 /src/bitcoind.cpp
parent25308337d659108e3320257fb6c1c16d5fe24aa9 (diff)
downloadbitcoin-d6712db35419e36b2c89191eb730a86d95abf4b0.tar.xz
Also create pid file in non-daemon mode
Always make a pid file, not only when `-daemon` specified. This is useful for troubleshooting, for attaching debuggers and loggers and such. - Write the pid file only after the datadir lock was acquired - Don't create or remove a pid file on WIN32, and also don't show the option
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r--src/bitcoind.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
index 5be8708979..0737b5a83d 100644
--- a/src/bitcoind.cpp
+++ b/src/bitcoind.cpp
@@ -129,7 +129,6 @@ bool AppInit(int argc, char* argv[])
}
if (pid > 0) // Parent process, pid is child process id
{
- CreatePidFile(GetPidFile(), pid);
return true;
}
// Child process falls through to rest of initialization