CFile::TryExLock(): Add O_CREAT to the default parameters

The old code in CLockFile automatically created the file too.
(Well, it also removed in in this case latter, but meh, so what?)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1353 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-01-27 19:56:05 +00:00
parent 7ef9f76bb0
commit 3ed2b755a3
+1 -1
View File
@@ -116,7 +116,7 @@ public:
void Close();
void ClearBuffer();
bool TryExLock(const CString& sLockFile, int iFlags = O_RDONLY);
bool TryExLock(const CString& sLockFile, int iFlags = O_RDONLY | O_CREAT);
bool TryExLock();
bool UnLock();