diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-08 15:43:18 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-08 15:43:18 +0200 |
commit | 8198cd06195f4217fd6b1afb675f3a316c951a1e (patch) | |
tree | 49982be2144bfdc57d4e975e90d9e86983a593c5 /src | |
parent | 08393f2509642009829f9de09a463e7d3e364a58 (diff) | |
download | abrt-8198cd06195f4217fd6b1afb675f3a316c951a1e.tar.gz abrt-8198cd06195f4217fd6b1afb675f3a316c951a1e.tar.xz abrt-8198cd06195f4217fd6b1afb675f3a316c951a1e.zip |
style fixes, trivial code changes only
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Daemon/CrashWatcher.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 1b147ed1..5ad419b4 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -116,6 +116,11 @@ map_crash_report_t GetJobResult(const char* pUUID, const char* pUID) { map_crash_info_t crashReport; + /* FIXME: starting from here, any shared data must be protected with a mutex. + * For example, CreateCrashReport does: + * g_pPluginManager->GetDatabase(g_settings_sDatabase); + * which is unsafe wrt concurrent updates to g_pPluginManager state. + */ mw_result_t res = CreateCrashReport(pUUID, pUID, crashReport); switch (res) { @@ -152,7 +157,7 @@ static void* create_report(void* arg) try { - /* "GetJobResult" is a bit of a misnomer */ + /* "GetJobResult" is a bit of a misnomer */ log("Creating report..."); map_crash_info_t crashReport = GetJobResult(thread_data->UUID, thread_data->UID); g_pCommLayer->JobDone(thread_data->dest, thread_data->UUID); @@ -213,8 +218,7 @@ bool DeleteDebugDump(const std::string& pUUID, const std::string& pUID) { try { - std::string debugDumpDir; - debugDumpDir = DeleteCrashInfo(pUUID, pUID); + std::string debugDumpDir = DeleteCrashInfo(pUUID, pUID); DeleteDebugDumpDir(debugDumpDir); } catch (CABRTException& e) |