summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Watson <watson.timothy@gmail.com>2012-11-13 11:48:12 +0000
committerTim Watson <watson.timothy@gmail.com>2012-11-13 11:48:12 +0000
commit236aff09ce9dc77367540a8a0acac88c0c3384da (patch)
tree20651e447c9866eef5408dd982c118bb5456ca71
parentc6e0ca5ed0c5a0c75bf004d316bf87a15053bcbc (diff)
downloadrabbitmq-server-236aff09ce9dc77367540a8a0acac88c0c3384da.tar.gz
rabbit_node_monitor traps exits, so shutdown allows us time to flush any
pending file system operations before the process dies
-rw-r--r--src/rabbit_node_monitor.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_node_monitor.erl b/src/rabbit_node_monitor.erl
index 97feb2f2..21389583 100644
--- a/src/rabbit_node_monitor.erl
+++ b/src/rabbit_node_monitor.erl
@@ -184,6 +184,7 @@ partitions() ->
%%----------------------------------------------------------------------------
init([]) ->
+ process_flag(trap_exit, true),
{ok, _} = mnesia:subscribe(system),
{ok, #state{monitors = pmon:new(),
partitions = []}}.