summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-06-17 15:57:43 +0200
committerZdenek Prikryl <zprikryl@redhat.com>2009-06-17 15:57:43 +0200
commit121e36536d05b32af17af3d513ffc96548d84381 (patch)
treef966c3c68041390eacf088e59e12be8dc2015e54 /src/Daemon/CrashWatcher.cpp
parent5b82ef1f0e5ff106c097b85b00e46708c1403453 (diff)
parentf40786b625c2e0298fdce567372a5a7afe105b83 (diff)
downloadabrt-121e36536d05b32af17af3d513ffc96548d84381.tar.gz
abrt-121e36536d05b32af17af3d513ffc96548d84381.tar.xz
abrt-121e36536d05b32af17af3d513ffc96548d84381.zip
Merge branch 'master' of git://git.fedorahosted.org/abrt
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r--src/Daemon/CrashWatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 41028d2..0112c73 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -485,7 +485,7 @@ void CCrashWatcher::FindNewDumps(const std::string& pPath)
void CCrashWatcher::Lock()
{
- int lfp = open("/var/run/abrt.lock",O_RDWR|O_CREAT,0640);
+ int lfp = open((std::string(VAR_RUN) + "abrt.lock").c_str(),O_RDWR|O_CREAT,0640);
if (lfp < 0)
{
throw CABRTException(EXCEP_FATAL, "CCrashWatcher::Lock(): can not open lock file");