From 996da1be8f5196fb9162c7d6400a319219b024fd Mon Sep 17 00:00:00 2001 From: Matt Mullins Date: Sat, 4 May 2013 23:56:00 -0700 Subject: [PATCH] Trap exits in a converted irc_amqp_listener. Without this, an upgraded irc_amqp_listener still won't manage to terminate cleanly. On the other hand, it doesn't anyway -- it's still brutal_kill'ed. Drop this patch, maybe? --- irc/irc_amqp_listener.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/irc/irc_amqp_listener.erl b/irc/irc_amqp_listener.erl index 785660f..ffcfcfd 100644 --- a/irc/irc_amqp_listener.erl +++ b/irc/irc_amqp_listener.erl @@ -65,6 +65,7 @@ handle_info( code_change(2, {ConnectionPid}, _) -> case process_info(self(), monitors) of {monitors, [{process, ListeningChannel}]} -> + process_flag(trap_exit, true), {ok, {ConnectionPid, ListeningChannel}}; _ -> {error, cant_find_listening_channel} -- 2.11.0