TrueBTS: make sure we don't exit the main thread
This commit is contained in:
parent
f1f5dbbaa4
commit
daaeb91a3b
|
@ -111,7 +111,8 @@ static Restarter sgRestarter(gConfig.defines("Server.RestartOnCrash"));
|
||||||
|
|
||||||
/// Configure the BTS object based on the config file.
|
/// Configure the BTS object based on the config file.
|
||||||
/// So don't create this until AFTER loading 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.
|
/// Our interface to the software-defined radio.
|
||||||
TransceiverManager gTRX(1, gConfig.getStr("TRX.IP"), gConfig.getNum("TRX.Port"));
|
TransceiverManager gTRX(1, gConfig.getStr("TRX.IP"), gConfig.getNum("TRX.Port"));
|
||||||
|
@ -658,6 +659,10 @@ int main(int argc, char *argv[])
|
||||||
#endif
|
#endif
|
||||||
LOG(INFO) << "system ready";
|
LOG(INFO) << "system ready";
|
||||||
|
|
||||||
|
while (1) {
|
||||||
|
sleep(10);
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
if (strcasecmp(gConfig.getStr("CLI.Type"),"TCP") == 0) {
|
if (strcasecmp(gConfig.getStr("CLI.Type"),"TCP") == 0) {
|
||||||
ConnectionServerSocketTCP serverSock(gConfig.getNum("CLI.TCP.Port"),
|
ConnectionServerSocketTCP serverSock(gConfig.getNum("CLI.TCP.Port"),
|
||||||
|
|
Reference in New Issue