make it clear why we terminate

This commit is contained in:
Harald Welte 2011-07-01 19:03:30 +02:00
parent 288d0c04c8
commit 18d0818710
2 changed files with 7 additions and 3 deletions

View File

@ -525,7 +525,8 @@ void abis_close(struct ipabis_link *link)
bts_shutdown(link->bts, "Abis close / OML");
else if (link->trx)
bts_shutdown(link->trx->bts, "Abis close / RSL");
else
else {
LOGP(DABIS, LOGL_FATAL, "Unable to connect to BSC\n");
exit(43);
}
}

View File

@ -21,6 +21,8 @@
*/
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
@ -62,6 +64,7 @@ int bts_init(struct gsm_bts *bts)
static void shutdown_timer_cb(void *data)
{
fprintf(stderr, "Shutdown timer expired\n");
exit(42);
}
@ -73,7 +76,7 @@ void bts_shutdown(struct gsm_bts *bts, const char *reason)
{
struct gsm_bts_trx *trx;
LOGP(DOML, LOGL_INFO, "Shutting down BTS %u, Reason %s\n",
LOGP(DOML, LOGL_NOTICE, "Shutting down BTS %u, Reason %s\n",
bts->nr, reason);
llist_for_each_entry(trx, &bts->trx_list, list)