From 8a9f28c91e0cc263f0e2acecdb435f2648832164 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 10 Oct 2011 19:31:27 +0200 Subject: ss7_links: Don't kill the user PID that has created a linkset Linksets are more like global applicaiton config, they should not be removed at the time the process configuring them has died. --- src/ss7_links.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ss7_links.erl b/src/ss7_links.erl index 7f9927f..5e98b3b 100644 --- a/src/ss7_links.erl +++ b/src/ss7_links.erl @@ -303,7 +303,10 @@ handle_info({'EXIT', Pid, Reason}, S) -> [Pid, Reason]), #su_state{linkset_tbl = LinksetTbl, link_tbl = LinkTbl, service_tbl = ServiceTbl} = S, - ets:match_delete(LinksetTbl, #slinkset{user_pid = Pid, _='_'}), + % we decided to keep Linksets as something like global + % configuration around and not kill them in case the user who + % created them has died. + %ets:match_delete(LinksetTbl, #slinkset{user_pid = Pid, _='_'}), ets:match_delete(LinkTbl, #slink{user_pid = Pid, _='_'}), ets:match_delete(ServiceTbl, #service{user_pid = Pid, _='_'}), {noreply, S}; -- cgit v1.2.3