aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-10-08 01:07:38 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-11-14 18:34:22 +0100
commit750ebd029abf4991b488bccd347b3170c93b6f67 (patch)
treee461bc182e268d8fc49204a10a1fb6f2528a7585
parenta29affda9871f5d7212d19a6fa50544c2108ae49 (diff)
fsm: use deferred deallocationneels/master
Since osmo-bsc uses the MGCP client FSMs, it is required to enable this new feature 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
-rw-r--r--src/osmo-bsc/osmo_bsc_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 0fe35b354..da2914d86 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -821,6 +821,8 @@ int main(int argc, char **argv)
osmo_stats_init(tall_bsc_ctx);
rate_ctr_init(tall_bsc_ctx);
+ osmo_fsm_set_dealloc_ctx(OTC_SELECT);
+
/* Allocate global gsm_network struct */
rc = bsc_network_alloc();
if (rc) {
@@ -939,7 +941,7 @@ int main(int argc, char **argv)
}
while (1) {
- osmo_select_main(0);
+ osmo_select_main_ctx(0);
}
return 0;