We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a4ac91 commit cc2f919Copy full SHA for cc2f919
src/rabbit_node_monitor.erl
@@ -691,6 +691,12 @@ await_cluster_recovery(Condition) ->
691
692
run_outside_applications(Fun, WaitForExistingProcess) ->
693
spawn_link(fun () ->
694
+ %% Ignore exit messages from the monitor - the link is needed
695
+ %% to ensure the monitor detects abnormal exits from this process
696
+ %% and can reset the 'restarting' status on the autoheal, avoiding
697
+ %% a deadlock. The monitor is restarted when rabbit does, so messages
698
+ %% in the other direction should be ignored.
699
+ process_flag(trap_exit, true),
700
%% If our group leader is inside an application we are about
701
%% to stop, application:stop/1 does not return.
702
group_leader(whereis(init), self()),
0 commit comments