forked from acouzens/open5gs
[ALL] Fix the terminate sequence (#938)
This commit is contained in:
parent
793a82020f
commit
73c3aa54c0
|
@ -84,14 +84,14 @@ void amf_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
ngap_close();
|
|
||||||
amf_sbi_close();
|
|
||||||
|
|
||||||
/* Daemon terminating */
|
/* Daemon terminating */
|
||||||
event_termination();
|
event_termination();
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
ogs_timer_delete(t_termination_holding);
|
ogs_timer_delete(t_termination_holding);
|
||||||
|
|
||||||
|
ngap_close();
|
||||||
|
amf_sbi_close();
|
||||||
|
|
||||||
amf_context_final();
|
amf_context_final();
|
||||||
ogs_sbi_context_final();
|
ogs_sbi_context_final();
|
||||||
|
|
||||||
|
|
|
@ -77,13 +77,13 @@ void ausf_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
ausf_sbi_close();
|
|
||||||
|
|
||||||
/* Daemon terminating */
|
/* Daemon terminating */
|
||||||
event_termination();
|
event_termination();
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
ogs_timer_delete(t_termination_holding);
|
ogs_timer_delete(t_termination_holding);
|
||||||
|
|
||||||
|
ausf_sbi_close();
|
||||||
|
|
||||||
ausf_context_final();
|
ausf_context_final();
|
||||||
ogs_sbi_context_final();
|
ogs_sbi_context_final();
|
||||||
|
|
||||||
|
|
|
@ -82,14 +82,14 @@ void mme_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
mme_gtp_close();
|
|
||||||
sgsap_close();
|
|
||||||
s1ap_close();
|
|
||||||
|
|
||||||
mme_event_term();
|
mme_event_term();
|
||||||
|
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
|
|
||||||
|
mme_gtp_close();
|
||||||
|
sgsap_close();
|
||||||
|
s1ap_close();
|
||||||
|
|
||||||
mme_fd_final();
|
mme_fd_final();
|
||||||
|
|
||||||
mme_context_final();
|
mme_context_final();
|
||||||
|
|
|
@ -75,13 +75,13 @@ void nrf_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
nrf_sbi_close();
|
|
||||||
|
|
||||||
/* Daemon terminating */
|
/* Daemon terminating */
|
||||||
event_termination();
|
event_termination();
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
ogs_timer_delete(t_termination_holding);
|
ogs_timer_delete(t_termination_holding);
|
||||||
|
|
||||||
|
nrf_sbi_close();
|
||||||
|
|
||||||
nrf_context_final();
|
nrf_context_final();
|
||||||
ogs_sbi_context_final();
|
ogs_sbi_context_final();
|
||||||
|
|
||||||
|
|
|
@ -77,13 +77,13 @@ void nssf_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
nssf_sbi_close();
|
|
||||||
|
|
||||||
/* Daemon terminating */
|
/* Daemon terminating */
|
||||||
event_termination();
|
event_termination();
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
ogs_timer_delete(t_termination_holding);
|
ogs_timer_delete(t_termination_holding);
|
||||||
|
|
||||||
|
nssf_sbi_close();
|
||||||
|
|
||||||
nssf_context_final();
|
nssf_context_final();
|
||||||
ogs_sbi_context_final();
|
ogs_sbi_context_final();
|
||||||
|
|
||||||
|
|
|
@ -80,13 +80,13 @@ void pcf_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
pcf_sbi_close();
|
|
||||||
|
|
||||||
/* Daemon terminating */
|
/* Daemon terminating */
|
||||||
event_termination();
|
event_termination();
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
ogs_timer_delete(t_termination_holding);
|
ogs_timer_delete(t_termination_holding);
|
||||||
|
|
||||||
|
pcf_sbi_close();
|
||||||
|
|
||||||
ogs_dbi_final();
|
ogs_dbi_final();
|
||||||
|
|
||||||
pcf_context_final();
|
pcf_context_final();
|
||||||
|
|
|
@ -74,13 +74,13 @@ void sgwc_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
sgwc_gtp_close();
|
|
||||||
sgwc_pfcp_close();
|
|
||||||
|
|
||||||
sgwc_event_term();
|
sgwc_event_term();
|
||||||
|
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
|
|
||||||
|
sgwc_gtp_close();
|
||||||
|
sgwc_pfcp_close();
|
||||||
|
|
||||||
sgwc_context_final();
|
sgwc_context_final();
|
||||||
|
|
||||||
ogs_pfcp_context_final();
|
ogs_pfcp_context_final();
|
||||||
|
|
|
@ -71,13 +71,13 @@ void sgwu_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
sgwu_pfcp_close();
|
|
||||||
sgwu_gtp_close();
|
|
||||||
|
|
||||||
sgwu_event_term();
|
sgwu_event_term();
|
||||||
|
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
|
|
||||||
|
sgwu_pfcp_close();
|
||||||
|
sgwu_gtp_close();
|
||||||
|
|
||||||
sgwu_context_final();
|
sgwu_context_final();
|
||||||
|
|
||||||
ogs_pfcp_context_final();
|
ogs_pfcp_context_final();
|
||||||
|
|
|
@ -109,15 +109,15 @@ void smf_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
smf_gtp_close();
|
|
||||||
smf_pfcp_close();
|
|
||||||
smf_sbi_close();
|
|
||||||
|
|
||||||
/* Daemon terminating */
|
/* Daemon terminating */
|
||||||
event_termination();
|
event_termination();
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
ogs_timer_delete(t_termination_holding);
|
ogs_timer_delete(t_termination_holding);
|
||||||
|
|
||||||
|
smf_gtp_close();
|
||||||
|
smf_pfcp_close();
|
||||||
|
smf_sbi_close();
|
||||||
|
|
||||||
smf_fd_final();
|
smf_fd_final();
|
||||||
|
|
||||||
smf_context_final();
|
smf_context_final();
|
||||||
|
|
|
@ -77,13 +77,13 @@ void udm_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
udm_sbi_close();
|
|
||||||
|
|
||||||
/* Daemon terminating */
|
/* Daemon terminating */
|
||||||
event_termination();
|
event_termination();
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
ogs_timer_delete(t_termination_holding);
|
ogs_timer_delete(t_termination_holding);
|
||||||
|
|
||||||
|
udm_sbi_close();
|
||||||
|
|
||||||
udm_context_final();
|
udm_context_final();
|
||||||
ogs_sbi_context_final();
|
ogs_sbi_context_final();
|
||||||
|
|
||||||
|
|
|
@ -80,13 +80,13 @@ void udr_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
udr_sbi_close();
|
|
||||||
|
|
||||||
/* Daemon terminating */
|
/* Daemon terminating */
|
||||||
event_termination();
|
event_termination();
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
ogs_timer_delete(t_termination_holding);
|
ogs_timer_delete(t_termination_holding);
|
||||||
|
|
||||||
|
udr_sbi_close();
|
||||||
|
|
||||||
ogs_dbi_final();
|
ogs_dbi_final();
|
||||||
|
|
||||||
udr_context_final();
|
udr_context_final();
|
||||||
|
|
|
@ -74,13 +74,13 @@ void upf_terminate(void)
|
||||||
{
|
{
|
||||||
if (!initialized) return;
|
if (!initialized) return;
|
||||||
|
|
||||||
upf_pfcp_close();
|
|
||||||
upf_gtp_close();
|
|
||||||
|
|
||||||
upf_event_term();
|
upf_event_term();
|
||||||
|
|
||||||
ogs_thread_destroy(thread);
|
ogs_thread_destroy(thread);
|
||||||
|
|
||||||
|
upf_pfcp_close();
|
||||||
|
upf_gtp_close();
|
||||||
|
|
||||||
upf_context_final();
|
upf_context_final();
|
||||||
|
|
||||||
ogs_pfcp_context_final();
|
ogs_pfcp_context_final();
|
||||||
|
|
Loading…
Reference in New Issue