Skip to content

Commit

Permalink
Fix return type of net_kernel:handle_exit function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ieQu1 committed Dec 18, 2023
1 parent be6661c commit fdcfa01
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions lib/kernel/src/net_kernel.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1279,18 +1279,19 @@ generate_node_name(Host, State0) ->
%% -----------------------------------------------------------

handle_exit(Pid, Reason, State) ->
catch do_handle_exit(Pid, Reason, State).

do_handle_exit(Pid, Reason, State) ->
listen_exit(Pid, Reason, State),
accept_exit(Pid, Reason, State),
conn_own_exit(Pid, Reason, State),
dist_ctrlr_exit(Pid, Reason, State),
pending_own_exit(Pid, Reason, State),
ticker_exit(Pid, Reason, State),
restarter_exit(Pid, Reason, State),
verbose({'EXIT', Pid, Reason}, 2, State),
{noreply,State}.
try
listen_exit(Pid, Reason, State),
accept_exit(Pid, Reason, State),
conn_own_exit(Pid, Reason, State),
dist_ctrlr_exit(Pid, Reason, State),
pending_own_exit(Pid, Reason, State),
ticker_exit(Pid, Reason, State),
restarter_exit(Pid, Reason, State),
verbose({'EXIT', Pid, Reason}, 2, State)
catch
_:_ -> ignore
end,
{noreply, State}.

listen_exit(Pid, Reason, State) ->
case lists:keymember(Pid, ?LISTEN_ID, State#state.listen) of
Expand Down

0 comments on commit fdcfa01

Please sign in to comment.