]> git.wh0rd.org Git - tt-rss.git/commitdiff
make_lockfile: don't do inode checking on windows
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 11 Jun 2013 08:55:47 +0000 (12:55 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 11 Jun 2013 08:55:47 +0000 (12:55 +0400)
include/functions.php

index 87917a5cb345428a599e44e1500d8ba0a86409e7..f05b5cb408ddfd274be3869729aa60db6a02cc1b 100644 (file)
                        $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')) {