Change in osmo-bsc[master]: fsm: use deferred deallocation and term_stops_actions

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Wed Oct 23 01:49:29 UTC 2019


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/15841 )


Change subject: fsm: use deferred deallocation and term_stops_actions
......................................................................

fsm: use deferred deallocation and term_stops_actions

Since osmo-bsc uses the MGCP client FSMs, it is required to enable these new
features to guarantee safe operation. The issue is described in detail in
commit logs linked below.

Depends: Ief4dba9ea587c9b4aea69993e965fbb20fb80e78 (libosmocore),
         I0adc13a1a998e953b6c850efa2761350dd07e03a (libosmocore)
Related: I7df2e9202b04e7ca7366bb0a8ec53cf3bb14faf3 (osmo-mgw)
Change-Id: Ib7fce7b7d54dfb87af97544796680919e5929a50
---
M src/osmo-bsc/osmo_bsc_main.c
1 file changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/41/15841/1

diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index dacd61a..a6c44bb 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -824,6 +824,9 @@
 	osmo_stats_init(tall_bsc_ctx);
 	rate_ctr_init(tall_bsc_ctx);
 
+	osmo_fsm_set_dealloc_ctx(OTC_SELECT);
+	osmo_fsm_set_term_stops_actions(true);
+
 	/* Allocate global gsm_network struct */
 	rc = bsc_network_alloc();
 	if (rc) {
@@ -942,7 +945,7 @@
 	}
 
 	while (1) {
-		osmo_select_main(0);
+		osmo_select_main_ctx(0);
 	}
 
 	return 0;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/15841
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ib7fce7b7d54dfb87af97544796680919e5929a50
Gerrit-Change-Number: 15841
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191023/c46efa5d/attachment.htm>


More information about the gerrit-log mailing list