projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format-cpp: run clang-format in parallel
[lttng-tools.git]
/
src
/
bin
/
lttng
/
lttng.cpp
diff --git
a/src/bin/lttng/lttng.cpp
b/src/bin/lttng/lttng.cpp
index 5f6e0f66e73477952472aa034f5f4c77ae759f72..b84fe3407069613d0c345956876d6dce73f76008 100644
(file)
--- a/
src/bin/lttng/lttng.cpp
+++ b/
src/bin/lttng/lttng.cpp
@@
-460,7
+460,7
@@
error:
/*
* main
*/
/*
* main
*/
-
int
main(int argc, char *argv[])
+
static int _
main(int argc, char *argv[])
{
int ret;
{
int ret;
@@
-478,3
+478,13
@@
int main(int argc, char *argv[])
return 0;
}
return 0;
}
+
+int main(int argc, char **argv)
+{
+ try {
+ return _main(argc, argv);
+ } catch (const std::exception& e) {
+ ERR_FMT("Unhandled exception caught by client: %s", e.what());
+ abort();
+ }
+}
This page took
0.022804 seconds
and
4
git commands to generate.