aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/abis.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-29 20:42:14 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-29 20:42:14 +0200
commitb84968418172040f12dc150d770f9b06d6df335d (patch)
treed7cd7017d9ee345aa7d5660dcf82d0c451dd0c7d /src/common/abis.c
parent1eb4d4893c3de16692ae3e9c3b4c8a09da490ad8 (diff)
deactivate RF + exit when the Abis link is gone
The idea is that the BTS process is re-spawned from init/upstart/systemd
Diffstat (limited to 'src/common/abis.c')
-rw-r--r--src/common/abis.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/abis.c b/src/common/abis.c
index 79a9d4d..c1e1c4f 100644
--- a/src/common/abis.c
+++ b/src/common/abis.c
@@ -513,5 +513,13 @@ void abis_close(struct ipabis_link *link)
if (osmo_timer_pending(&link->timer))
osmo_timer_del(&link->timer);
+
+ /* for now, we simply terminate the program and re-spawn */
+ if (link->bts)
+ bts_shutdown(link->bts);
+ else if (link->trx)
+ bts_shutdown(link->trx->bts);
+ else
+ exit(43);
}