From f24929fb5fe3cf01d6900cb7bb8de548dd7004a8 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 25 Feb 2008 23:15:46 +0000 Subject: [PATCH] Change read lock filenames to work around Win32 dot blindness... ie: this.file.lock matches this.file.lock.* --- exec/load/lockfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/load/lockfile.js b/exec/load/lockfile.js index e48640b727..134290b8ee 100644 --- a/exec/load/lockfile.js +++ b/exec/load/lockfile.js @@ -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... */ -- GitLab