diff options
author | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-29 12:46:18 +0200 |
---|---|---|
committer | Zdenek Prikryl <zdeny@dhcp-lab-218.englab.brq.redhat.com> | 2009-04-29 12:46:18 +0200 |
commit | 1e752b178131fa0268151219deb35e09c40e29bc (patch) | |
tree | 0b6bbed34179f605d7e6759211a010edea19f9d5 /src/Daemon/CrashWatcher.cpp | |
parent | 52291c1024050d25967b5640b04d67166b7728d2 (diff) | |
download | abrt-1e752b178131fa0268151219deb35e09c40e29bc.tar.gz abrt-1e752b178131fa0268151219deb35e09c40e29bc.tar.xz abrt-1e752b178131fa0268151219deb35e09c40e29bc.zip |
rework commlayerinner usage
new lock method in debugdump
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r-- | src/Daemon/CrashWatcher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 0146fab..2a2f05b 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -30,7 +30,7 @@ #include <sstream> #include <dirent.h> #include <cstring> -#include "ABRTCommLayer.h" +#include "CommLayerInner.h" #include "ABRTException.h" /* just a helper function @@ -215,7 +215,7 @@ CCrashWatcher::CCrashWatcher(const std::string& pPath) // TODO: initialize object according parameters -w -d // status has to be always created. m_pCommLayerInner = new CCommLayerInner(this, true, true); - ABRTCommLayer::init_comm_layer_inner(m_pCommLayerInner); + comm_layer_inner_init(m_pCommLayerInner); m_pSettings = new CSettings(); m_pSettings->LoadSettings(std::string(CONF_DIR) + "/abrt.conf"); @@ -289,7 +289,7 @@ void CCrashWatcher::FindNewDumps(const std::string& pPath) std::cerr << "Saving debugdeump: " << *itt << std::endl; try { - if(m_pMW->SaveDebugDump(*itt, crashinfo) == 0) + if(m_pMW->SaveDebugDump(*itt, crashinfo)) { std::cerr << "Saved new entry: " << *itt << std::endl; m_pMW->Report(*itt); |