aboutsummaryrefslogtreecommitdiff
path: root/src/test/skiplist_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-10-25 12:03:22 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-11-29 12:47:13 +0100
commit16ca0bfd2848424de7deae307283d9eb9de8a978 (patch)
treed33a4bcfc19a83aeb538085e5aad92f45687ed2c /src/test/skiplist_tests.cpp
parent0cc8b6bc44bea29e24fa4e13d8a9bbe4f1483680 (diff)
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/test/skiplist_tests.cpp')
0 files changed, 0 insertions, 0 deletions