mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
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:
+1
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user