Skip to content

Commit 0723018

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. (cherry picked from commit a472982)
1 parent ac23476 commit 0723018

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/rabbit/src/rabbit_ff_controller.erl

+1
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ callback_mode() ->
168168
state_functions.
169169

170170
init(_Args) ->
171+
process_flag(trap_exit, true),
171172
{ok, standing_by, none}.
172173

173174
standing_by(

0 commit comments

Comments
 (0)