diff options
author | UdjinM6 <UdjinM6@dash.org> | 2016-11-02 21:59:09 +0300 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2016-12-02 07:41:11 +0000 |
commit | f85ee01303b3d5127a31285b2682fcae2f8df64d (patch) | |
tree | b9ecfce4ec90081461e6e2a4ec017008ceb188d2 /src/bitcoind.cpp | |
parent | 5bcb05d4e1304ac3582f1779a25693c0065c69e9 (diff) | |
download | bitcoin-f85ee01303b3d5127a31285b2682fcae2f8df64d.tar.xz |
Fix exit codes:
- `--help`, `--version` etc should exit with `0` i.e. no error ("not enough args" case should still trigger an error)
- error reading config file should exit with `1`
Slightly refactor AppInitRPC/AppInitRawTx to return standard exit codes (EXIT_FAILURE/EXIT_SUCCESS) or CONTINUE_EXECUTION (-1)
Github-Pull: #9067
Rebased-From: bd0de1386e1c7f9b875d52290de0d561c8d56bc9
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r-- | src/bitcoind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 28bc374acc..b534caffac 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -93,7 +93,7 @@ bool AppInit(int argc, char* argv[]) } fprintf(stdout, "%s", strUsage.c_str()); - return false; + return true; } try |