laforge
/
openbts-osmo
Archived
1
0
Fork 0

Shutdown without core dump on a usual SocketError.

master
Alexander Chemeris 12 years ago committed by Thomas Tsou
parent a0f3b96688
commit d0c9057711
  1. 8
      public-trunk/apps/OpenBTS.cpp

@ -412,6 +412,8 @@ int main(int argc, char *argv[])
cout << endl << endl << gOpenBTSWelcome << endl;
try {
#if 1
cout << endl << "Starting the system..." << endl;
@ -571,6 +573,12 @@ int main(int argc, char *argv[])
runCLI(&gParser);
}
} catch(SocketError) {
// Shutdown without core dump.
// SocketError is a usual case, e.g. it's fired when transceiver fails.
LOG(ALARM) << "Uncaught exception. Shutting down.";
}
if (!gBTS.hold()) {
exitBTS(0, cout);
}