laforge
/
openbts-osmo
Archived
1
0
Fork 0

Shutdown without core dump on a usual SocketError.

This commit is contained in:
Alexander Chemeris 2010-11-24 12:14:10 +03:00 committed by Thomas Tsou
parent a0f3b96688
commit d0c9057711
1 changed files with 8 additions and 0 deletions

View File

@ -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);
}