Skip to content
Snippets Groups Projects
Commit f24929fb authored by deuce's avatar deuce
Browse files

Change read lock filenames to work around Win32 dot blindness...

ie: this.file.lock matches this.file.lock.*
parent 64af6017
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ function Lock(filename, lockid, forwrite, timeout)
if(LockedFiles[filename]!=undefined)
file_remove(readlock.name);
/* We have got the lock... wait for all read locks to close */
while(directory(filename+".lock.*").length) {
while(file_exists(filename+".lock_*")) {
mswait(1);
if(system.timer > endtime) {
/* If we were upgrading, restor our old lock... */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment