summaryrefslogtreecommitdiffstats
path: root/src/ss7_links.erl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-10-10 19:31:27 +0200
committerHarald Welte <laforge@gnumonks.org>2011-10-10 19:31:27 +0200
commit8a9f28c91e0cc263f0e2acecdb435f2648832164 (patch)
tree2aedde2e7e89c24cdeede271c29f00132c47c4cf /src/ss7_links.erl
parent1ea446947d6474230d8870d8f32c5ff475d3e4d4 (diff)
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.
Diffstat (limited to 'src/ss7_links.erl')
-rw-r--r--src/ss7_links.erl5
1 files changed, 4 insertions, 1 deletions
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};