/*
* main
*/
-int main(int argc, char **argv)
+static int _main(int argc, char **argv)
{
int ret = 0, retval = 0;
const char *env_app_timeout;
exit(EXIT_FAILURE);
}
}
+
+int main(int argc, char **argv)
+{
+ try {
+ return _main(argc, argv);
+ } catch (const std::exception& e) {
+ ERR_FMT("Unhandled exception caught by main thread: %s", e.what());
+ abort();
+ }
+}