summaryrefslogtreecommitdiff
path: root/lib/common/NamedLock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/NamedLock.cpp')
-rw-r--r--lib/common/NamedLock.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/common/NamedLock.cpp b/lib/common/NamedLock.cpp
index 632635b8..a844c810 100644
--- a/lib/common/NamedLock.cpp
+++ b/lib/common/NamedLock.cpp
@@ -1,4 +1,4 @@
-// distribution boxbackup-0.10 (svn version: 494)
+// distribution boxbackup-0.11rc1 (svn version: 2023_2024)
//
// Copyright (c) 2003 - 2006
// Ben Summers and contributors. All rights reserved.
@@ -97,7 +97,7 @@ NamedLock::~NamedLock()
// Function
// Name: NamedLock::TryAndGetLock(const char *, int)
// Purpose: Trys to get a lock on the name in the file system.
-// IMPORTANT NOTE: If a file exists with this name, it will be deleted.
+// IMPORTANT NOTE: If a file exists with this name, it will be deleted.
// Created: 2003/08/28
//
// --------------------------------------------------------------------------
@@ -131,6 +131,7 @@ bool NamedLock::TryAndGetLock(const char *Filename, int mode)
int fd = ::open(Filename, O_WRONLY | O_CREAT | O_TRUNC, mode);
if(fd == -1)
{
+ BOX_WARNING("Failed to open lockfile: " << Filename);
THROW_EXCEPTION(CommonException, OSFileError)
}