summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-02-12 18:17:15 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-02-12 18:17:15 +0100
commitbccd32e8a752294bd11d930e2311ac4c64cfc43c (patch)
treece6f2906beb7eb1136e415a531c6c901a511e16e /src
parenta96c5aceda3ea0be5c8a01bb8a35e77d6fa25170 (diff)
downloadabrt-bccd32e8a752294bd11d930e2311ac4c64cfc43c.tar.gz
abrt-bccd32e8a752294bd11d930e2311ac4c64cfc43c.tar.xz
abrt-bccd32e8a752294bd11d930e2311ac4c64cfc43c.zip
Quick ugly hack to ignore lock files.
Diffstat (limited to 'src')
-rw-r--r--src/Daemon/CrashWatcher.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 1474b2f6..ede95947 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -56,6 +56,13 @@ gboolean CCrashWatcher::handle_event_cb(GIOChannel *gio, GIOCondition condition,
std::cout << "Created file: " << name << std::endl;
#endif /*DEBUG*/
+//HACK!!!
+ std::string sName = name;
+ if (sName.find(".lock") != std::string::npos)
+ {
+ return TRUE;
+ }
+ std::cout << "kuk" << std::endl;
CCrashWatcher *cc = (CCrashWatcher*)daemon;
CMiddleWare::crash_info_t crashinfo;
if(cc->m_pMW->SaveDebugDump(std::string(DEBUG_DUMPS_DIR) + "/" + name, crashinfo))
@@ -63,6 +70,7 @@ gboolean CCrashWatcher::handle_event_cb(GIOChannel *gio, GIOCondition condition,
/* send message to dbus */
cc->m_pDbusServer->Crash(crashinfo.m_sPackage);
}
+ std::cout << "kuk2" << std::endl;
}
return TRUE;
}