summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-11-13 12:02:44 +0000
committerSimon MacMullen <simon@rabbitmq.com>2012-11-13 12:02:44 +0000
commite150aa15f9bb8d21081d75495ca79378ac4e26b1 (patch)
tree9f62b35418489e9d23a98fd1b1887331581ae344
parent236aff09ce9dc77367540a8a0acac88c0c3384da (diff)
downloadrabbitmq-server-e150aa15f9bb8d21081d75495ca79378ac4e26b1.tar.gz
Explain why
-rw-r--r--src/rabbit_node_monitor.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rabbit_node_monitor.erl b/src/rabbit_node_monitor.erl
index 21389583..8d0e4456 100644
--- a/src/rabbit_node_monitor.erl
+++ b/src/rabbit_node_monitor.erl
@@ -184,6 +184,10 @@ partitions() ->
%%----------------------------------------------------------------------------
init([]) ->
+ %% We trap exits so that the supervisor will not just kill us. We
+ %% want to be sure that we are not going to be killed while
+ %% writing out the cluster status files - bad things can then
+ %% happen.
process_flag(trap_exit, true),
{ok, _} = mnesia:subscribe(system),
{ok, #state{monitors = pmon:new(),