From a472982d26f9e640feec9619cd59be4de3f2f374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Tue, 2 Jan 2024 17:52:41 +0100 Subject: [PATCH] rabbit_feature_flags: Trap exit signal in the controller [Why] We need to do this for the `terminate/3` to be called. Without this, the process exits without calling it. --- deps/rabbit/src/rabbit_ff_controller.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/rabbit/src/rabbit_ff_controller.erl b/deps/rabbit/src/rabbit_ff_controller.erl index 663374188fe1..6d61e28dc8b1 100644 --- a/deps/rabbit/src/rabbit_ff_controller.erl +++ b/deps/rabbit/src/rabbit_ff_controller.erl @@ -186,6 +186,7 @@ init(_Args) -> ?LOG_DEBUG( "Feature flags: controller standing by", #{domain => ?RMQLOG_DOMAIN_FEAT_FLAGS}), + process_flag(trap_exit, true), {ok, standing_by, none}. standing_by(