From fdcfa011720ef7e0acd0da74d4cb66a07039063c Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Mon, 18 Dec 2023 16:04:39 +0100 Subject: [PATCH] Fix return type of net_kernel:handle_exit function. --- lib/kernel/src/net_kernel.erl | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/lib/kernel/src/net_kernel.erl b/lib/kernel/src/net_kernel.erl index a3d983d310c0..271b5813296c 100644 --- a/lib/kernel/src/net_kernel.erl +++ b/lib/kernel/src/net_kernel.erl @@ -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