Skip to content

Commit a472982

Browse files
committed
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.
1 parent d258626 commit a472982

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/rabbit/src/rabbit_ff_controller.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ init(_Args) ->
186186
?LOG_DEBUG(
187187
"Feature flags: controller standing by",
188188
#{domain => ?RMQLOG_DOMAIN_FEAT_FLAGS}),
189+
process_flag(trap_exit, true),
189190
{ok, standing_by, none}.
190191

191192
standing_by(

0 commit comments

Comments
 (0)