From d65334388a3a0682ca2b864f2d7f50b48cde5626 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 4 Nov 2007 14:45:05 +0000 Subject: Log an error if we fail to open the lockfile. --- lib/common/NamedLock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/common/NamedLock.cpp b/lib/common/NamedLock.cpp index 2418c60c..16c580ba 100644 --- a/lib/common/NamedLock.cpp +++ b/lib/common/NamedLock.cpp @@ -59,7 +59,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 // // -------------------------------------------------------------------------- @@ -93,6 +93,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) } -- cgit v1.2.3