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 | b7e92e332963fb3259b89a57cd6781823fc6d7fe (patch) | |
| tree | 9f62b35418489e9d23a98fd1b1887331581ae344 /src | |
| parent | 8fbea86ff5cc355b29fe39b6414b069a3170b515 (diff) | |
| download | rabbitmq-server-git-b7e92e332963fb3259b89a57cd6781823fc6d7fe.tar.gz | |
Explain why
Diffstat (limited to 'src')
| -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 21389583ee..8d0e4456df 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(), |
