From 5d157e341fed5782c1fbfdd5f820a8d349824e84 Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Wed, 17 Jun 2009 16:23:08 +0200 Subject: new default path for lock file --- src/Daemon/CrashWatcher.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Daemon/CrashWatcher.cpp') diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp index 0112c73..2670ce8 100644 --- a/src/Daemon/CrashWatcher.cpp +++ b/src/Daemon/CrashWatcher.cpp @@ -33,6 +33,8 @@ #include #include "ABRTException.h" +#define VAR_RUN_LOCK_FILE VAR_RUN"/abrt.lock" + /* just a helper function template< class T > std::string @@ -485,7 +487,7 @@ void CCrashWatcher::FindNewDumps(const std::string& pPath) void CCrashWatcher::Lock() { - int lfp = open((std::string(VAR_RUN) + "abrt.lock").c_str(),O_RDWR|O_CREAT,0640); + int lfp = open(VAR_RUN_LOCK_FILE, O_RDWR|O_CREAT,0640); if (lfp < 0) { throw CABRTException(EXCEP_FATAL, "CCrashWatcher::Lock(): can not open lock file"); -- cgit