grin/src/bin/cmd
hashmap 53bce41981
Don't use process::exit in wallet cmd (#1913)
Unlike panic it doesn't call destructors (Drop) so all open transactions
are not closed. It's fine when LMDB file is open by the current process
only, but if another process keeps the same file open such transactions
will be considered alive until the second process exits. We usually have
one or more long-lived process (like `wallet listen`) which opens the
same wallet db as short-lived wallet commands. When a command fails it
calls process::exit and as result leaks a transaction.
This pr replaces such calls with an exit code return, which allows to call
all destructors before calling process::exit.
Fixes #1822
2018-11-04 21:26:46 +01:00
..
client.rs Don't use process::exit in wallet cmd (#1913) 2018-11-04 21:26:46 +01:00
config.rs Fix typos and unused imports (#1466) 2018-09-03 13:09:28 +02:00
mod.rs Config + Default directories (#1433) 2018-08-30 10:10:40 +01:00
server.rs Don't use process::exit in wallet cmd (#1913) 2018-11-04 21:26:46 +01:00
wallet.rs Don't use process::exit in wallet cmd (#1913) 2018-11-04 21:26:46 +01:00