summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLynx Linden <lynx@lindenlab.com>2010-05-28 22:14:06 +0100
committerLynx Linden <lynx@lindenlab.com>2010-05-28 22:14:06 +0100
commitd71ea5ffd94ed1dc1b6ad6f4b57fc2e11dfc7a23 (patch)
treec7457e119394018d3a19295b71d7d0e492ba3eac /indra
parent2567519f9f45c0fd9a7d976bc232217e0b19a3a2 (diff)
Remove old minidump files on a clean exit, not on startup.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llappviewer.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 3528deb9e0..5f2e16ef12 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -607,9 +607,6 @@ bool LLAppViewer::init()
logdir += gDirUtilp->getDirDelimiter();
setMiniDumpDir(logdir);
- // remove any old minidump files from the log directory
- gDirUtilp->deleteFilesInDir(logdir, "*-*-*-*-*.dmp");
-
// Although initLogging() is the right place to mess with
// setFatalFunction(), we can't query gSavedSettings until after
// initConfiguration().
@@ -1234,6 +1231,14 @@ bool LLAppViewer::cleanup()
// workaround for DEV-35406 crash on shutdown
LLEventPumps::instance().reset();
+ // remove any old breakpad minidump files from the log directory
+ if (! isError())
+ {
+ std::string logdir = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "");
+ logdir += gDirUtilp->getDirDelimiter();
+ gDirUtilp->deleteFilesInDir(logdir, "*-*-*-*-*.dmp");
+ }
+
// *TODO - generalize this and move DSO wrangling to a helper class -brad
std::set<struct apr_dso_handle_t *>::const_iterator i;
for(i = mPlugins.begin(); i != mPlugins.end(); ++i)