projects
/
erlbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1c65e1
)
Trap exits in a converted irc_amqp_listener.
v10
author
Matt Mullins
<mmullins@mmlx.us>
Sun, 5 May 2013 06:56:00 +0000
(23:56 -0700)
committer
Matt Mullins
<mmullins@mmlx.us>
Sun, 5 May 2013 07:36:00 +0000
(
00:36
-0700)
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
patch
|
blob
|
history
diff --git
a/irc/irc_amqp_listener.erl
b/irc/irc_amqp_listener.erl
index
785660f
..
ffcfcfd
100644
(file)
--- 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}