From 13a170944612000c3097a7d4ae514578087c8818 Mon Sep 17 00:00:00 2001 From: Ryan Zezeski Date: Tue, 7 Jan 2014 17:21:13 -0500 Subject: [PATCH] Allow applications to shutdown normally It's very important to shutdown properly or else log messages could get swallowed and you'll have no idea why basho bench failed. I had an issue in the `new/1` function of my driver and without this change there was no indication as to why Basho Bench failed because halt was causing lager to exit before it could log the failure reason. --- src/basho_bench_app.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basho_bench_app.erl b/src/basho_bench_app.erl index 843fc61d7..c0a55aea1 100644 --- a/src/basho_bench_app.erl +++ b/src/basho_bench_app.erl @@ -71,7 +71,7 @@ halt_or_kill() -> {ok, included} -> exit(whereis(basho_bench_sup),kill); _ -> - halt(1) + init:stop() end. %% ===================================================================