diff options
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index e85abb1..dd97cbf 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -2694,35 +2694,32 @@ void LLAppViewer::initMarkerFile() | |||
2694 | std::string llerror_marker_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, LLERROR_MARKER_FILE_NAME); | 2694 | std::string llerror_marker_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, LLERROR_MARKER_FILE_NAME); |
2695 | std::string error_marker_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, ERROR_MARKER_FILE_NAME); | 2695 | std::string error_marker_file = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, ERROR_MARKER_FILE_NAME); |
2696 | 2696 | ||
2697 | |||
2698 | if (LLAPRFile::isExist(mMarkerFileName, LL_APR_RB) && !anotherInstanceRunning()) | 2697 | if (LLAPRFile::isExist(mMarkerFileName, LL_APR_RB) && !anotherInstanceRunning()) |
2699 | { | 2698 | { |
2700 | gLastExecEvent = LAST_EXEC_FROZE; | 2699 | gLastExecEvent = LAST_EXEC_FROZE; |
2701 | LL_INFOS("MarkerFile") << "Exec marker found: program froze on previous execution" << LL_ENDL; | 2700 | LL_INFOS("MarkerFile") << "Exec marker found: program froze on previous execution" << LL_ENDL; |
2702 | } | 2701 | } |
2703 | |||
2704 | if(LLAPRFile::isExist(logout_marker_file, LL_APR_RB)) | 2702 | if(LLAPRFile::isExist(logout_marker_file, LL_APR_RB)) |
2705 | { | 2703 | { |
2706 | LL_INFOS("MarkerFile") << "Last exec LLError crashed, setting LastExecEvent to " << LAST_EXEC_LLERROR_CRASH << LL_ENDL; | ||
2707 | gLastExecEvent = LAST_EXEC_LOGOUT_FROZE; | 2704 | gLastExecEvent = LAST_EXEC_LOGOUT_FROZE; |
2705 | LL_INFOS("MarkerFile") << "Last exec LLError crashed, setting LastExecEvent to " << gLastExecEvent << LL_ENDL; | ||
2706 | LLAPRFile::remove(logout_marker_file); | ||
2708 | } | 2707 | } |
2709 | if(LLAPRFile::isExist(llerror_marker_file, LL_APR_RB)) | 2708 | if(LLAPRFile::isExist(llerror_marker_file, LL_APR_RB)) |
2710 | { | 2709 | { |
2711 | llinfos << "Last exec LLError crashed, setting LastExecEvent to " << LAST_EXEC_LLERROR_CRASH << llendl; | ||
2712 | if(gLastExecEvent == LAST_EXEC_LOGOUT_FROZE) gLastExecEvent = LAST_EXEC_LOGOUT_CRASH; | 2710 | if(gLastExecEvent == LAST_EXEC_LOGOUT_FROZE) gLastExecEvent = LAST_EXEC_LOGOUT_CRASH; |
2713 | else gLastExecEvent = LAST_EXEC_LLERROR_CRASH; | 2711 | else gLastExecEvent = LAST_EXEC_LLERROR_CRASH; |
2712 | LL_INFOS("MarkerFile") << "Last exec LLError crashed, setting LastExecEvent to " << gLastExecEvent << LL_ENDL; | ||
2713 | LLAPRFile::remove(llerror_marker_file); | ||
2714 | } | 2714 | } |
2715 | if(LLAPRFile::isExist(error_marker_file, LL_APR_RB)) | 2715 | if(LLAPRFile::isExist(error_marker_file, LL_APR_RB)) |
2716 | { | 2716 | { |
2717 | LL_INFOS("MarkerFile") << "Last exec crashed, setting LastExecEvent to " << LAST_EXEC_OTHER_CRASH << LL_ENDL; | ||
2718 | if(gLastExecEvent == LAST_EXEC_LOGOUT_FROZE) gLastExecEvent = LAST_EXEC_LOGOUT_CRASH; | 2717 | if(gLastExecEvent == LAST_EXEC_LOGOUT_FROZE) gLastExecEvent = LAST_EXEC_LOGOUT_CRASH; |
2719 | else gLastExecEvent = LAST_EXEC_OTHER_CRASH; | 2718 | else gLastExecEvent = LAST_EXEC_OTHER_CRASH; |
2719 | LL_INFOS("MarkerFile") << "Last exec crashed, setting LastExecEvent to " << gLastExecEvent << LL_ENDL; | ||
2720 | LLAPRFile::remove(error_marker_file); | ||
2720 | } | 2721 | } |
2721 | 2722 | ||
2722 | LLAPRFile::remove(logout_marker_file); | ||
2723 | LLAPRFile::remove(llerror_marker_file); | ||
2724 | LLAPRFile::remove(error_marker_file); | ||
2725 | |||
2726 | // No new markers if another instance is running. | 2723 | // No new markers if another instance is running. |
2727 | if(anotherInstanceRunning()) | 2724 | if(anotherInstanceRunning()) |
2728 | { | 2725 | { |