summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-06-11 12:55:47 +0400
committerAndrew Dolgov <[email protected]>2013-06-11 12:55:47 +0400
commit1fcebfb3c7275292754aa4a133bead18cd3dede9 (patch)
tree10db4416f2c680bbbe8fab500533e4e65b883112 /include
parentda8d534ac14c9d5022d9d25bb6c6e24a41c8326b (diff)
make_lockfile: don't do inode checking on windows
Diffstat (limited to 'include')
-rw-r--r--include/functions.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 87917a5cb..f05b5cb40 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -995,8 +995,12 @@
$stat_h = fstat($fp);
$stat_f = stat(LOCK_DIRECTORY . "/$filename");
- if ($stat_h["ino"] != $stat_f["ino"] || $stat_h["dev"] != $stat_f["dev"]) {
- return false;
+ if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
+ if ($stat_h["ino"] != $stat_f["ino"] ||
+ $stat_h["dev"] != $stat_f["dev"]) {
+
+ return false;
+ }
}
if (function_exists('posix_getpid')) {