From 7eba2dec5795d9fe4276251b49937e8e4bd1eca6 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 10 Dec 2014 11:29:29 -0800 Subject: [PATCH] force exit on error. --- src/bitcoindjs.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index ff374a88..ec6a00eb 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -846,6 +846,7 @@ start_node_thread(void) { mapArgs["-datadir"].c_str()); } shutdown_complete = true; + _exit(1); return; } @@ -857,6 +858,7 @@ start_node_thread(void) { "bitcoind.js: Error reading configuration file: %s\n", e.what()); } shutdown_complete = true; + _exit(1); return; } @@ -866,6 +868,7 @@ start_node_thread(void) { "bitcoind.js: Invalid combination of -regtest and -testnet.\n"); } shutdown_complete = true; + _exit(1); return; } @@ -875,6 +878,7 @@ start_node_thread(void) { fprintf(stderr, "You need to rebuild the database using -reindex to change -txindex\n"); } shutdown_complete = true; + _exit(1); return; }