Commit 9973b13e authored by tsimmons's avatar tsimmons

Make sure we are running on Windows before fclose() to avoid race condition possible in Nix.

parent 8231c039
......@@ -404,8 +404,8 @@
if (file_exists(LOCK_DIRECTORY . "/$lock_filename")) {
if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN')
unlink(LOCK_DIRECTORY . "/$lock_filename");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment