pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37921?usp=email )


Change subject: sctp_proxy: Allow handling EXIT signal
......................................................................

sctp_proxy: Allow handling EXIT signal

The gen_statem in sctp_proxy.erl has code to handle EXIT signal of
children in connected() state, but it lacks enabling receival of the
EXIT signal. gen_statem don't have the trap enabled by default.

Change-Id: I3dcad7450be8883736eb6f2ea1460add3b83e01b
---
M src/sctp_proxy.erl
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/erlang/osmo-s1gw 
refs/changes/21/37921/1

diff --git a/src/sctp_proxy.erl b/src/sctp_proxy.erl
index 1d8d305..3ebabbd 100644
--- a/src/sctp_proxy.erl
+++ b/src/sctp_proxy.erl
@@ -75,6 +75,7 @@
 %% ------------------------------------------------------------------

 init([Aid, MmeAddr, MmePort]) ->
+    process_flag(trap_exit, true),
     {ok, connecting,
      #{enb_aid => Aid,
        mme_addr => MmeAddr,

--
To view, visit https://gerrit.osmocom.org/c/erlang/osmo-s1gw/+/37921?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: erlang/osmo-s1gw
Gerrit-Branch: master
Gerrit-Change-Id: I3dcad7450be8883736eb6f2ea1460add3b83e01b
Gerrit-Change-Number: 37921
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to