Skip to content

Commit

Permalink
rabbit_feature_flags: Trap exit signal in the controller
Browse files Browse the repository at this point in the history
[Why]
We need to do this for the `terminate/3` to be called. Without this, the
process exits without calling it.
  • Loading branch information
dumbbell committed Jan 4, 2024
1 parent d258626 commit a472982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deps/rabbit/src/rabbit_ff_controller.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a472982

Please sign in to comment.