bitcoin/bitcoin — pull request #3736 by cozz (2014-02-24 13:40:04+00:00)
Title: Fix bitcoin-cli exit status code

bitcoin-cli returns 1 on success and 0 on error. By convention it should be the other way round.

It is not possible to distinguish between different error codes, all errors return 0.
But for an AppInitRPC error, we would return 1...