diff options
| author | Tim Watson <watson.timothy@gmail.com> | 2012-11-13 11:48:12 +0000 |
|---|---|---|
| committer | Tim Watson <watson.timothy@gmail.com> | 2012-11-13 11:48:12 +0000 |
| commit | 8fbea86ff5cc355b29fe39b6414b069a3170b515 (patch) | |
| tree | 20651e447c9866eef5408dd982c118bb5456ca71 /src | |
| parent | 04f6012ae8b04580e5e323c05a18f5971e5e0581 (diff) | |
| download | rabbitmq-server-git-8fbea86ff5cc355b29fe39b6414b069a3170b515.tar.gz | |
rabbit_node_monitor traps exits, so shutdown allows us time to flush any
pending file system operations before the process dies
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_node_monitor.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rabbit_node_monitor.erl b/src/rabbit_node_monitor.erl index 97feb2f2b4..21389583ee 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 = []}}. |
