diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-12 16:26:54 +0100 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-12 16:26:54 +0100 |
| commit | 3541999cd3338818cd86583383dbca87606d49fa (patch) | |
| tree | cfdacff29ee52da415361c79b74582e51392bf0d /lib/MiddleWare/MiddleWare.cpp | |
| parent | e608c17a82071fb490df198155a1e022857f9cf0 (diff) | |
| download | abrt-3541999cd3338818cd86583383dbca87606d49fa.tar.gz abrt-3541999cd3338818cd86583383dbca87606d49fa.tar.xz abrt-3541999cd3338818cd86583383dbca87606d49fa.zip | |
added lock functionality to DebugDump
Diffstat (limited to 'lib/MiddleWare/MiddleWare.cpp')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp index 5a5e39d..91eff06 100644 --- a/lib/MiddleWare/MiddleWare.cpp +++ b/lib/MiddleWare/MiddleWare.cpp @@ -111,6 +111,7 @@ void CMiddleWare::DebugDump2Report(const std::string& pDebugDumpDir, CReporter:: { pReport.m_bBinaryData2 = pDebugDumpDir + "/" + FILENAME_BINARYDATA2; } + dd.Close(); } void CMiddleWare::RegisterPlugin(const std::string& pName) @@ -174,6 +175,7 @@ void CMiddleWare::CreateReport(const std::string& pDebugDumpDir, CreateReportLanguage(language, pDebugDumpDir); } DebugDump2Report(pDebugDumpDir, pCrashReport.m_Report); + dd.Close(); } void CMiddleWare::CreateReport(const std::string& pUUID, @@ -273,6 +275,7 @@ int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t& { dd.Delete(pDebugDumpPath); } + dd.Close(); pCrashInfo.m_sUUID = UUID; pCrashInfo.m_sUID = UID; @@ -308,6 +311,7 @@ CMiddleWare::vector_crash_infos_t CMiddleWare::GetCrashInfos(const std::string& info.m_sExecutable = data; dd.LoadText(FILENAME_PACKAGE, data); info.m_sPackage = data; + dd.Close(); infos.push_back(info); } |
