diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-02-14 18:20:07 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-19 08:30:21 +0000 |
commit | d1f5793b5e89426927d57cff7f6951e0c2e29d92 (patch) | |
tree | 56cc46cfdf3ee7026ab4b4d9968c2c31d0441145 /tests/utils | |
parent | 4a8a9f4210b01c3b8b75eb3b984c9127e90d8c54 (diff) |
fsm: allow graceful exit on FSM termination
The function _osmo_fsm_inst_term() terminates all child FSMs befor
it calls fi->fsm_cleanup(). This prevents the cleanup callback to
perform last actions on the child FSMs (e.g.
osmo_fsm_inst_unlink_parent()).
- Since moving the cleanup callack to the beginning of the function
would alter the termination behavior and possibly cause malfunction
in already existing implementation that use OSMO fsm, a new
optional callback that is called immediately at the beginning of
the terminatopn process is added.
Change-Id: I0fdda9fe994753f975a658c0f3fb3615949cc8bb
Closes: OS#2915
Diffstat (limited to 'tests/utils')
0 files changed, 0 insertions, 0 deletions