diff options
author | Aura Linden <aura@lindenlab.com> | 2013-12-03 17:06:06 -0800 |
---|---|---|
committer | Aura Linden <aura@lindenlab.com> | 2013-12-03 17:06:06 -0800 |
commit | 680934812598d2c9116303f3245e7a9d60ff58bf (patch) | |
tree | db084813bcfb23f00bd260c014672f4de784949f /indra/linux_crash_logger | |
parent | 787ccaf297e81291469aaf269f563d862fb150a3 (diff) |
Creating a cleaner branch
Diffstat (limited to 'indra/linux_crash_logger')
-rwxr-xr-x | indra/linux_crash_logger/linux_crash_logger.cpp | 11 | ||||
-rwxr-xr-x | indra/linux_crash_logger/llcrashloggerlinux.cpp | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/indra/linux_crash_logger/linux_crash_logger.cpp b/indra/linux_crash_logger/linux_crash_logger.cpp index 99d0ad7e14..d4e7ad7be3 100755 --- a/indra/linux_crash_logger/linux_crash_logger.cpp +++ b/indra/linux_crash_logger/linux_crash_logger.cpp @@ -26,6 +26,7 @@ #include "linden_common.h" #include "llcrashloggerlinux.h" +#include "llsdutil.h" int main(int argc, char **argv) { @@ -34,6 +35,16 @@ int main(int argc, char **argv) LLCrashLoggerLinux app; app.parseCommandOptions(argc, argv); + LLSD options = LLApp::instance()->getOptionData( + LLApp::PRIORITY_COMMAND_LINE); + //LLApp::PRIORITY_RUNTIME_OVERRIDE); + + + if (!(options.has("pid") && options.has("dumpdir"))) + { + llwarns << "Insufficient parameters to crash report." << llendl; + } + if (! app.init()) { llwarns << "Unable to initialize application." << llendl; diff --git a/indra/linux_crash_logger/llcrashloggerlinux.cpp b/indra/linux_crash_logger/llcrashloggerlinux.cpp index 62465f9937..871d6377cb 100755 --- a/indra/linux_crash_logger/llcrashloggerlinux.cpp +++ b/indra/linux_crash_logger/llcrashloggerlinux.cpp @@ -136,6 +136,7 @@ bool LLCrashLoggerLinux::mainLoop() bool LLCrashLoggerLinux::cleanup() { commonCleanup(); + mKeyMaster.releaseMaster(); return true; } |