From: Matt Mullins Date: Sun, 5 May 2013 06:56:00 +0000 (-0700) Subject: Trap exits in a converted irc_amqp_listener. X-Git-Tag: v10 X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=996da1be8f5196fb9162c7d6400a319219b024fd;p=erlbot.git 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? --- 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}