aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-10-25 12:03:22 +0200
committerWladimir J. van der Laan <[email protected]>2016-11-29 12:47:13 +0100
commit16ca0bfd2848424de7deae307283d9eb9de8a978 (patch)
treed33a4bcfc19a83aeb538085e5aad92f45687ed2c /src/bitcoind.cpp
parentinit: Split up AppInit2 into multiple phases (diff)
downloaddiscoin-16ca0bfd2848424de7deae307283d9eb9de8a978.tar.xz
discoin-16ca0bfd2848424de7deae307283d9eb9de8a978.zip
init: Try to aquire datadir lock before and after daemonization
Before daemonization, just probe the data directory lock and print an early error message if possible. After daemonization get the data directory lock again and hold on to it until exit This creates a slight window for a race condition to happen, however this condition is harmless: it will at most make us exit without printing a message to console. $ src/bitcoind -testnet -daemon Bitcoin server starting $ src/bitcoind -testnet -daemon Error: Cannot obtain a lock on data directory /home/orion/.bitcoin/testnet3. Bitcoin Core is probably already running.
Diffstat (limited to 'src/bitcoind.cpp')
0 files changed, 0 insertions, 0 deletions