diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2012-11-13 12:02:44 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2012-11-13 12:02:44 +0000 |
commit | e150aa15f9bb8d21081d75495ca79378ac4e26b1 (patch) | |
tree | 9f62b35418489e9d23a98fd1b1887331581ae344 | |
parent | 236aff09ce9dc77367540a8a0acac88c0c3384da (diff) | |
download | rabbitmq-server-e150aa15f9bb8d21081d75495ca79378ac4e26b1.tar.gz |
Explain why
-rw-r--r-- | src/rabbit_node_monitor.erl | 4 |
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(), |