laforge
/
openbts-osmo
Archived
1
0
Fork 0

TrueBTS: make sure we don't exit the main thread

This commit is contained in:
Harald Welte 2011-11-12 23:44:07 +01:00
parent f1f5dbbaa4
commit daaeb91a3b
1 changed files with 6 additions and 1 deletions

View File

@ -111,7 +111,8 @@ static Restarter sgRestarter(gConfig.defines("Server.RestartOnCrash"));
/// Configure the BTS object based on the config file.
/// So don't create this until AFTER loading the config file.
GSMConfigL1 &gBTSL1;
GSMConfigL1 _gBTSL1;
GSMConfigL1 &gBTSL1 = _gBTSL1;
/// Our interface to the software-defined radio.
TransceiverManager gTRX(1, gConfig.getStr("TRX.IP"), gConfig.getNum("TRX.Port"));
@ -658,6 +659,10 @@ int main(int argc, char *argv[])
#endif
LOG(INFO) << "system ready";
while (1) {
sleep(10);
}
#if 0
if (strcasecmp(gConfig.getStr("CLI.Type"),"TCP") == 0) {
ConnectionServerSocketTCP serverSock(gConfig.getNum("CLI.TCP.Port"),